Class TextureContainerRenderer
Namespace: Aurigma.DesignAtoms.Rendering.CanvasRenderers
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class TextureContainerRenderer : ICanvasRenderer
Inheritance: System.Object -> TextureContainerRenderer
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
TextureContainerRenderer
public TextureContainerRenderer(IConfiguration configuration, IColorManagement colorManagement, Func<Bitmap> getTextureBitmap = null)
Methods
Render
public 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 |
ProcessBitmap
public Bitmap ProcessBitmap(Bitmap bitmap, float resizeMultiplier)
Parameters
| Type | Name | Description |
|---|---|---|
Aurigma.GraphicsMill.Bitmap | bitmap | |
System.Single | resizeMultiplier |
Returns
Aurigma.GraphicsMill.Bitmap