Class CanvasRenderer
Namespace: Aurigma.DesignAtoms.Rendering.CanvasRenderers
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class CanvasRenderer : ICanvasRenderer
Inheritance: System.Object -> CanvasRenderer
Implements
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Constructors
CanvasRenderer
public CanvasRenderer(IConfiguration configuration, IColorManagement colorManagement)
Methods
Render
public virtual Bitmap Render(RenderingContext renderingContext, ICanvas canvas, float dpi, Color backgroundColor, ColorSpace? destinationColorSpace, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, bool? pdfRenderKeepOriginalColors, Path renderingPath = null, bool isPreview = false, bool isSingleColorTargetContainer = false, WorkspaceTransformParams workspaceTransformParams = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Canvas.RenderingContext | renderingContext | |
| Aurigma.DesignAtoms.Canvas.ICanvas | canvas | |
System.Single | dpi | |
Aurigma.GraphicsMill.Color | backgroundColor | |
System.Nullable<Aurigma.DesignAtoms.Model.Color.ColorSpace> | destinationColorSpace | |
| Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings | colorSettings | |
| Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider | profilesProvider | |
System.Nullable<System.Boolean> | pdfRenderKeepOriginalColors | |
Aurigma.GraphicsMill.AdvancedDrawing.Path | renderingPath | |
System.Boolean | isPreview | |
System.Boolean | isSingleColorTargetContainer | |
| Aurigma.DesignAtoms.Rendering.WorkspaceTransformParams | workspaceTransformParams |
Returns
Aurigma.GraphicsMill.Bitmap
Render
public void Render(RenderingContext renderingContext, PipelineElement writer, ICanvas canvas, float dpi, Color backgroundColor, ColorSpace? destinationColorSpace, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, bool? pdfRenderKeepOriginalColors, Path renderingPath = null, bool isPreview = false, bool isSingleColorTargetContainer = false, WorkspaceTransformParams workspaceTransformParams = null, Tuple<string, RectangleF>[] pdfBoxes = null, bool isPdfRenderDeviceProfileEnabled = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Canvas.RenderingContext | renderingContext | |
Aurigma.GraphicsMill.PipelineElement | writer | |
| Aurigma.DesignAtoms.Canvas.ICanvas | canvas | |
System.Single | dpi | |
Aurigma.GraphicsMill.Color | backgroundColor | |
System.Nullable<Aurigma.DesignAtoms.Model.Color.ColorSpace> | destinationColorSpace | |
| Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings | colorSettings | |
| Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider | profilesProvider | |
System.Nullable<System.Boolean> | pdfRenderKeepOriginalColors | |
Aurigma.GraphicsMill.AdvancedDrawing.Path | renderingPath | |
System.Boolean | isPreview | |
System.Boolean | isSingleColorTargetContainer | |
| Aurigma.DesignAtoms.Rendering.WorkspaceTransformParams | workspaceTransformParams | |
System.Tuple<System.String,System.Drawing.RectangleF>[] | pdfBoxes | |
System.Boolean | isPdfRenderDeviceProfileEnabled |
GetDefaultBox
public static RectangleF GetDefaultBox(RectangleF bounds, bool swapSides)
Parameters
| Type | Name | Description |
|---|---|---|
System.Drawing.RectangleF | bounds | |
System.Boolean | swapSides |
Returns
System.Drawing.RectangleF
GetCropBox
public static RectangleF GetCropBox(RectangleF defaultBox, Tuple<string, RectangleF>[] pdfBoxes)
Parameters
| Type | Name | Description |
|---|---|---|
System.Drawing.RectangleF | defaultBox | |
System.Tuple<System.String,System.Drawing.RectangleF>[] | pdfBoxes |
Returns
System.Drawing.RectangleF
GetTrimBox
public static RectangleF GetTrimBox(RectangleF defaultBox, Tuple<string, RectangleF>[] pdfBoxes)
Parameters
| Type | Name | Description |
|---|---|---|
System.Drawing.RectangleF | defaultBox | |
System.Tuple<System.String,System.Drawing.RectangleF>[] | pdfBoxes |
Returns
System.Drawing.RectangleF
GetBleedBox
public static RectangleF GetBleedBox(RectangleF defaultBox, Tuple<string, RectangleF>[] pdfBoxes)
Parameters
| Type | Name | Description |
|---|---|---|
System.Drawing.RectangleF | defaultBox | |
System.Tuple<System.String,System.Drawing.RectangleF>[] | pdfBoxes |
Returns
System.Drawing.RectangleF