Skip to main content

Class ShapeItemHandler

Namespace: Aurigma.DesignAtoms.Canvas.ItemHandlers​
Assembly: Aurigma.DesignAtoms.dll​
Syntax
public class ShapeItemHandler : BaseRectangleItemHandler, ICloneable, IDisposable

Inheritance: System.Object -> Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler -> Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler -> ShapeItemHandler

Implements​

  • System.ICloneable
  • System.IDisposable

Inherited Members​

Constructors​

ShapeItemHandler​

public ShapeItemHandler(IConfiguration configuration, IStateResourcesRepository stateResourcesRepository, IColorManagement colorManagement, IGmColorConverter gmColorConverter, ShapeItem item)

Properties​

Item​

public ShapeItem Item { get; }

Path​

public virtual Path Path { get; set; }

Dash​

public float[] Dash { get; set; }

BorderWidth​

public float BorderWidth { get; set; }

FixedBorderWidth​

public bool FixedBorderWidth { get; set; }

Bounds​

public override RectangleF Bounds { get; }

Methods​

ItemOnPropertyChanged​

protected override void ItemOnPropertyChanged(object sender, PropertyChangedEventArgs propertyChangedEventArgs)
Parameters​
TypeNameDescription
System.Objectsender
System.ComponentModel.PropertyChangedEventArgspropertyChangedEventArgs
Overrides​

GetBorderColor​

public Color GetBorderColor(IColorProfilesProvider profilesProvider)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.ColorManagement.IColorProfilesProviderprofilesProvider
Returns​

Aurigma.GraphicsMill.Color

GetAltBorderColor​

public Color GetAltBorderColor(IColorProfilesProvider profilesProvider)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.ColorManagement.IColorProfilesProviderprofilesProvider
Returns​

Aurigma.GraphicsMill.Color

GetFillColor​

public Color GetFillColor(IColorProfilesProvider profilesProvider)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.ColorManagement.IColorProfilesProviderprofilesProvider
Returns​

Aurigma.GraphicsMill.Color

GetTransformedPath​

public Path GetTransformedPath()
Returns​

Aurigma.DesignAtoms.Model.Math.Path

GetItemHandlerData​

public override ItemHandlerData GetItemHandlerData()
Returns​

Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandlerData

Overrides​

GetItemHandlerDataType​

public override string GetItemHandlerDataType()
Returns​

System.String

Overrides​

UpdateControlPoints​

protected void UpdateControlPoints()

GetBorderWidth​

protected float GetBorderWidth(float dpi = 72F)
Parameters​
TypeNameDescription
System.Singledpi
Returns​

System.Single

GetShapeDrawer​

protected Drawer GetShapeDrawer(IRenderingColorSettings colorSettings, PixelFormat destinationPixelFormat, float scale, PointF offset, IColorProfilesProvider profilesProvider)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettingscolorSettings
Aurigma.DesignAtoms.Model.Color.PixelFormatdestinationPixelFormat
System.Singlescale
Aurigma.DesignAtoms.Model.Math.PointFoffset
Aurigma.DesignAtoms.ColorManagement.IColorProfilesProviderprofilesProvider
Returns​

Aurigma.GraphicsMill.AdvancedDrawing.Drawer

GetPath​

protected override Path GetPath()
Returns​

Aurigma.GraphicsMill.AdvancedDrawing.Path

Overrides​

GetDrawingFillColor​

protected virtual Color GetDrawingFillColor(PixelFormat destinationPixelFormat, IColorProfilesProvider profilesProvider)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Color.PixelFormatdestinationPixelFormat
Aurigma.DesignAtoms.ColorManagement.IColorProfilesProviderprofilesProvider
Returns​

Aurigma.GraphicsMill.Color

FillShape​

protected virtual void FillShape(Graphics graphics, IRenderingColorSettings colorSettings, PixelFormat destinationPixelFormat, IColorProfilesProvider profilesProvider, bool renderOnPdf, bool pdfRenderKeepOriginalColors, bool isPdfRenderDeviceProfileEnabled = false)
Parameters​
TypeNameDescription
Aurigma.GraphicsMill.AdvancedDrawing.Graphicsgraphics
Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettingscolorSettings
Aurigma.DesignAtoms.Model.Color.PixelFormatdestinationPixelFormat
Aurigma.DesignAtoms.ColorManagement.IColorProfilesProviderprofilesProvider
System.BooleanrenderOnPdf
System.BooleanpdfRenderKeepOriginalColors
System.BooleanisPdfRenderDeviceProfileEnabled

StrokeShape​

protected void StrokeShape(Graphics graphics, IRenderingColorSettings colorSettings, PixelFormat destinationPixelFormat, IColorProfilesProvider profilesProvider, bool renderOnPdf, bool pdfRenderKeepOriginalColors, bool isPdfRenderDeviceProfileEnabled = false)
Parameters​
TypeNameDescription
Aurigma.GraphicsMill.AdvancedDrawing.Graphicsgraphics
Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettingscolorSettings
Aurigma.DesignAtoms.Model.Color.PixelFormatdestinationPixelFormat
Aurigma.DesignAtoms.ColorManagement.IColorProfilesProviderprofilesProvider
System.BooleanrenderOnPdf
System.BooleanpdfRenderKeepOriginalColors
System.BooleanisPdfRenderDeviceProfileEnabled

DrawShape​

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​
TypeNameDescription
Aurigma.DesignAtoms.Canvas.RenderingContextrenderingContext
Aurigma.GraphicsMill.AdvancedDrawing.Graphicsgraphics
Aurigma.GraphicsMill.IImageParamsdestImageParams
Aurigma.DesignAtoms.Canvas.ItemHandlers.DrawItemParamsdrawItemParams
Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettingscolorSettings
Aurigma.DesignAtoms.ColorManagement.IColorProfilesProviderprofilesProvider
System.BooleanrasterizeVectorLayers
System.BooleanrenderOnPdf
System.BooleanisPreview
System.BooleanisSingleColorTargetContainer
System.BooleanisPdfRenderDeviceProfileEnabled
Was this page helpful?