Class ShapeItemHandler
Inheritance
System.Object
ShapeItemHandler
Implements
System.ICloneable
System.IDisposable
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()
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class ShapeItemHandler : BaseRectangleItemHandler, ICloneable, IDisposable
Constructors
ShapeItemHandler(IConfiguration, IFileCache, IColorManagement, ILogger, IGmColorConverter, ShapeItem)
Declaration
public ShapeItemHandler(IConfiguration configuration, IFileCache fileCache, IColorManagement colorManagement, ILogger ccLogger, IGmColorConverter gmColorConverter, ShapeItem item)
Parameters
Properties
BorderWidth
Declaration
public float BorderWidth { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
Bounds
Declaration
public override RectangleF Bounds { get; }
Property Value
| Type |
Description |
| System.Drawing.RectangleF |
|
Overrides
Dash
Declaration
public float[] Dash { get; set; }
Property Value
| Type |
Description |
| System.Single[] |
|
FixedBorderWidth
Declaration
public bool FixedBorderWidth { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Item
Declaration
public ShapeItem Item { get; }
Property Value
Path
Declaration
public virtual Path Path { get; set; }
Property Value
Methods
DrawShape(RenderingContext, Graphics, IImageParams, DrawItemParams, IRenderingColorSettings, IColorProfilesProvider, Boolean, Boolean, Boolean, Boolean, Boolean)
Declaration
protected void DrawShape(RenderingContext renderingContext, Graphics graphics, IImageParams destImageParams, DrawItemParams drawItemParams, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider, bool rasterizeVectorLayers, bool renderOnPdf, bool isPreview, bool isSingleColorTargetContainer, bool isPdfRenderDeviceProfileEnabled = false)
Parameters
| Type |
Name |
Description |
| RenderingContext |
renderingContext |
|
| Aurigma.GraphicsMill.AdvancedDrawing.Graphics |
graphics |
|
| Aurigma.GraphicsMill.IImageParams |
destImageParams |
|
| DrawItemParams |
drawItemParams |
|
| IRenderingColorSettings |
colorSettings |
|
| IColorProfilesProvider |
profilesProvider |
|
| System.Boolean |
rasterizeVectorLayers |
|
| System.Boolean |
renderOnPdf |
|
| System.Boolean |
isPreview |
|
| System.Boolean |
isSingleColorTargetContainer |
|
| System.Boolean |
isPdfRenderDeviceProfileEnabled |
|
Declaration
protected virtual void FillShape(Graphics graphics, IRenderingColorSettings colorSettings, PixelFormat destinationPixelFormat, IColorProfilesProvider profilesProvider, bool renderOnPdf, bool pdfRenderKeepOriginalColors, bool isPdfRenderDeviceProfileEnabled = false)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.AdvancedDrawing.Graphics |
graphics |
|
| IRenderingColorSettings |
colorSettings |
|
| PixelFormat |
destinationPixelFormat |
|
| IColorProfilesProvider |
profilesProvider |
|
| System.Boolean |
renderOnPdf |
|
| System.Boolean |
pdfRenderKeepOriginalColors |
|
| System.Boolean |
isPdfRenderDeviceProfileEnabled |
|
GetAltBorderColor(IColorProfilesProvider)
Declaration
public Color GetAltBorderColor(IColorProfilesProvider profilesProvider)
Parameters
Returns
| Type |
Description |
| Aurigma.GraphicsMill.Color |
|
GetBorderColor(IColorProfilesProvider)
Declaration
public Color GetBorderColor(IColorProfilesProvider profilesProvider)
Parameters
Returns
| Type |
Description |
| Aurigma.GraphicsMill.Color |
|
GetBorderWidth(Single)
Declaration
protected float GetBorderWidth(float dpi = 72F)
Parameters
| Type |
Name |
Description |
| System.Single |
dpi |
|
Returns
| Type |
Description |
| System.Single |
|
Declaration
protected virtual Color GetDrawingFillColor(PixelFormat destinationPixelFormat, IColorProfilesProvider profilesProvider)
Parameters
Returns
| Type |
Description |
| Aurigma.GraphicsMill.Color |
|
GetFillColor(IColorProfilesProvider)
Declaration
public Color GetFillColor(IColorProfilesProvider profilesProvider)
Parameters
Returns
| Type |
Description |
| Aurigma.GraphicsMill.Color |
|
GetItemHandlerData()
Declaration
public override ItemHandlerData GetItemHandlerData()
Returns
Overrides
GetItemHandlerDataType()
Declaration
public override string GetItemHandlerDataType()
Returns
| Type |
Description |
| System.String |
|
Overrides
GetPath()
Declaration
protected override Path GetPath()
Returns
| Type |
Description |
| Aurigma.GraphicsMill.AdvancedDrawing.Path |
|
Overrides
Declaration
protected Drawer GetShapeDrawer(IRenderingColorSettings colorSettings, PixelFormat destinationPixelFormat, float scale, PointF offset, IColorProfilesProvider profilesProvider)
Parameters
Returns
| Type |
Description |
| Aurigma.GraphicsMill.AdvancedDrawing.Drawer |
|
Declaration
public Path GetTransformedPath()
Returns
ItemOnPropertyChanged(Object, PropertyChangedEventArgs)
Declaration
protected override void ItemOnPropertyChanged(object sender, PropertyChangedEventArgs propertyChangedEventArgs)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
| System.ComponentModel.PropertyChangedEventArgs |
propertyChangedEventArgs |
|
Overrides
Declaration
protected void StrokeShape(Graphics graphics, IRenderingColorSettings colorSettings, PixelFormat destinationPixelFormat, IColorProfilesProvider profilesProvider, bool renderOnPdf, bool pdfRenderKeepOriginalColors, bool isPdfRenderDeviceProfileEnabled = false)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.AdvancedDrawing.Graphics |
graphics |
|
| IRenderingColorSettings |
colorSettings |
|
| PixelFormat |
destinationPixelFormat |
|
| IColorProfilesProvider |
profilesProvider |
|
| System.Boolean |
renderOnPdf |
|
| System.Boolean |
pdfRenderKeepOriginalColors |
|
| System.Boolean |
isPdfRenderDeviceProfileEnabled |
|
UpdateControlPoints()
Declaration
protected void UpdateControlPoints()
Implements
System.ICloneable
System.IDisposable