Class TextRenderer
Namespace: Aurigma.DesignAtoms.Canvas
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class TextRenderer : ITextRenderer
Inheritance: System.Object -> TextRenderer
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
TextRenderer
public TextRenderer(IFileCache fileCache, IFontService fontService, IColorManagement colorManagement)
Methods
RenderToFile
public string RenderToFile(BaseTextItemHandler itemHandler, float dpi, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseTextItemHandler | itemHandler | |
System.Single | dpi | |
| Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings | colorSettings | |
| Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider | profilesProvider |
Returns
System.String
RenderToStreamAndFile
public string RenderToStreamAndFile(Stream stream, BaseTextItemHandler itemHandler, float dpi, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, out bool? textCropped, bool removeColorProfile = false)
Parameters
| Type | Name | Description |
|---|---|---|
System.IO.Stream | stream | |
| Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseTextItemHandler | itemHandler | |
System.Single | dpi | |
| Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings | colorSettings | |
| Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider | profilesProvider | |
System.Nullable<System.Boolean> | textCropped | |
System.Boolean | removeColorProfile |
Returns
System.String
RenderToStream
public void RenderToStream(Stream stream, BaseTextItemHandler itemHandler, float dpi, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, out bool? textCropped, bool removeColorProfile = false)
Parameters
| Type | Name | Description |
|---|---|---|
System.IO.Stream | stream | |
| Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseTextItemHandler | itemHandler | |
System.Single | dpi | |
| Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings | colorSettings | |
| Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider | profilesProvider | |
System.Nullable<System.Boolean> | textCropped | |
System.Boolean | removeColorProfile |
RenderToFile
public string RenderToFile(BaseTextItemHandler itemHandler, float dpi, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, out bool? textCropped, bool removeColorProfile = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseTextItemHandler | itemHandler | |
System.Single | dpi | |
| Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings | colorSettings | |
| Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider | profilesProvider | |
System.Nullable<System.Boolean> | textCropped | |
System.Boolean | removeColorProfile |
Returns
System.String
RenderToBitmap
public Bitmap RenderToBitmap(BaseTextItemHandler itemHandler, float dpi, bool removeColorProfile, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, out bool? textCropped, out string cacheFileId)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseTextItemHandler | itemHandler | |
System.Single | dpi | |
System.Boolean | removeColorProfile | |
| Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings | colorSettings | |
| Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider | profilesProvider | |
System.Nullable<System.Boolean> | textCropped | |
System.String | cacheFileId |
Returns
Aurigma.GraphicsMill.Bitmap
GetTextBitmap
public Bitmap GetTextBitmap(BaseTextItemHandler itemHandler, float dpi, Point location, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, bool extendBitmap = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseTextItemHandler | itemHandler | |
System.Single | dpi | |
System.Drawing.Point | location | |
| Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings | colorSettings | |
| Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider | profilesProvider | |
System.Boolean | extendBitmap |
Returns
Aurigma.GraphicsMill.Bitmap