Back to Website
Show / Hide Table of Contents

Class Canvas

Inheritance
System.Object
Canvas
Implements
ICanvas
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Aurigma.DesignAtoms.Canvas
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class Canvas : ICanvas

Constructors

Canvas(IConfiguration, IFileCache, ILogger, IColorManagement, Func<ICanvasRenderer>)

Declaration
public Canvas(IConfiguration configuration, IFileCache fileCache, ILogger ccLogger, IColorManagement colorManagement, Func<ICanvasRenderer> rendererFactoryMethod = null)
Parameters
Type Name Description
IConfiguration configuration
IFileCache fileCache
ILogger ccLogger
IColorManagement colorManagement
System.Func<ICanvasRenderer> rendererFactoryMethod

Properties

CmykColorProfile

Declaration
public ColorProfile CmykColorProfile { get; set; }
Property Value
Type Description
Aurigma.GraphicsMill.ColorProfile

Data

Declaration
public string Data { get; set; }
Property Value
Type Description
System.String

DisableSmoothing

Declaration
public bool DisableSmoothing { get; set; }
Property Value
Type Description
System.Boolean

GrayscaleColorProfile

Declaration
public ColorProfile GrayscaleColorProfile { get; set; }
Property Value
Type Description
Aurigma.GraphicsMill.ColorProfile

Layers

Declaration
public LayerCollection Layers { get; }
Property Value
Type Description
LayerCollection

MaxFontSize

Declaration
public float? MaxFontSize { get; set; }
Property Value
Type Description
System.Nullable<System.Single>

MaxJsonLength

Declaration
public int MaxJsonLength { get; set; }
Property Value
Type Description
System.Int32

MaxLeading

Declaration
public float? MaxLeading { get; set; }
Property Value
Type Description
System.Nullable<System.Single>

MinFontSize

Declaration
public float? MinFontSize { get; set; }
Property Value
Type Description
System.Nullable<System.Single>

MinLeading

Declaration
public float? MinLeading { get; set; }
Property Value
Type Description
System.Nullable<System.Single>

MouseMoveTimeout

Declaration
public int MouseMoveTimeout { get; set; }
Property Value
Type Description
System.Int32

MultipleSelectionEnabled

Declaration
public bool MultipleSelectionEnabled { get; set; }
Property Value
Type Description
System.Boolean

RgbColorProfile

Declaration
public ColorProfile RgbColorProfile { get; set; }
Property Value
Type Description
Aurigma.GraphicsMill.ColorProfile

ScreenXDpi

Declaration
public float ScreenXDpi { get; set; }
Property Value
Type Description
System.Single

ScreenYDpi

Declaration
public float ScreenYDpi { get; set; }
Property Value
Type Description
System.Single

SourceColorProfiles

Declaration
public ISourceColorProfiles SourceColorProfiles { get; }
Property Value
Type Description
ISourceColorProfiles

Tags

Declaration
public Dictionary<string, object> Tags { get; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.Object>

TargetDpi

Declaration
public float? TargetDpi { get; set; }
Property Value
Type Description
System.Nullable<System.Single>

WorkspaceHeight

Declaration
public float WorkspaceHeight { get; set; }
Property Value
Type Description
System.Single

WorkspaceWidth

Declaration
public float WorkspaceWidth { get; set; }
Property Value
Type Description
System.Single

Zoom

Declaration
public float Zoom { get; set; }
Property Value
Type Description
System.Single

Methods

Deserialize(Stream)

Declaration
public void Deserialize(Stream stream)
Parameters
Type Name Description
System.IO.Stream stream

GetImageItemHandlers()

Declaration
public IEnumerable<ImageItemHandler> GetImageItemHandlers()
Returns
Type Description
System.Collections.Generic.IEnumerable<ImageItemHandler>

GetItemHandler(Item)

Declaration
public ItemHandler GetItemHandler(Item item)
Parameters
Type Name Description
Item item
Returns
Type Description
ItemHandler

RenderWorkspace(RenderingContext, PipelineElement, Single, ColorSpace, IRenderingColorSettings, IColorProfilesProvider, Nullable<Boolean>, Nullable<RectangleF>, Color, Boolean, WorkspaceTransformParams, Tuple<String, RectangleF>[], Boolean)

Declaration
public void RenderWorkspace(RenderingContext renderingContext, PipelineElement writer, float dpi, ColorSpace destinationColorSpace, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, bool? pdfRenderKeepOriginalColors, RectangleF? bounds = null, Color backgroundColor = null, bool isPreview = false, WorkspaceTransformParams workspaceTransformParams = null, Tuple<string, RectangleF>[] pdfBoxes = null, bool isPdfRenderDeviceProfileEnabled = false)
Parameters
Type Name Description
RenderingContext renderingContext
Aurigma.GraphicsMill.PipelineElement writer
System.Single dpi
ColorSpace destinationColorSpace
IRenderingColorSettings colorSettings
IColorProfilesProvider profilesProvider
System.Nullable<System.Boolean> pdfRenderKeepOriginalColors
System.Nullable<System.Drawing.RectangleF> bounds
Aurigma.GraphicsMill.Color backgroundColor
System.Boolean isPreview
WorkspaceTransformParams workspaceTransformParams
System.Tuple<System.String, System.Drawing.RectangleF>[] pdfBoxes
System.Boolean isPdfRenderDeviceProfileEnabled

RenderWorkspace(RenderingContext, Single, ColorSpace, IRenderingColorSettings, IColorProfilesProvider, Nullable<Boolean>, Nullable<RectangleF>, Color, Boolean, WorkspaceTransformParams, Boolean)

Declaration
public Bitmap RenderWorkspace(RenderingContext renderingContext, float dpi, ColorSpace destinationColorSpace, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, bool? pdfRenderKeepOriginalColors, RectangleF? bounds = null, Color backgroundColor = null, bool isPreview = false, WorkspaceTransformParams workspaceTransformParams = null, bool isSingleColorTargetContainer = false)
Parameters
Type Name Description
RenderingContext renderingContext
System.Single dpi
ColorSpace destinationColorSpace
IRenderingColorSettings colorSettings
IColorProfilesProvider profilesProvider
System.Nullable<System.Boolean> pdfRenderKeepOriginalColors
System.Nullable<System.Drawing.RectangleF> bounds
Aurigma.GraphicsMill.Color backgroundColor
System.Boolean isPreview
WorkspaceTransformParams workspaceTransformParams
System.Boolean isSingleColorTargetContainer
Returns
Type Description
Aurigma.GraphicsMill.Bitmap

Serialize(Stream)

Declaration
public void Serialize(Stream stream)
Parameters
Type Name Description
System.IO.Stream stream

Implements

ICanvas
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback