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.ICloneableSystem.IDisposable
Inherited Members
- Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler.MinDimension
- Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler.GetTransform(System.Drawing.RectangleF, Aurigma.DesignAtoms.Model.Math.RotatedRectangleF)
- Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler.DrawClippingPath(Aurigma.GraphicsMill.AdvancedDrawing.Graphics, System.Action)
- Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler.GetClippingPath(System.Single, System.Boolean)
- Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler.GetTransformedVectorMask(Aurigma.DesignAtoms.Model.Math.Transform, Aurigma.DesignAtoms.Model.Math.PointF, System.Boolean)
- Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler.GetDrawingPath(System.Single)
- Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler.GetActualDash(System.Single[], System.Boolean, System.Single)
- Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler.Rectangle
- Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler.Angle
- Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler.Height
- Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler.Width
- Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler.Location
- Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler.Opacity
- Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler.TextWrappingMode
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler._stateResourcesRepository
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler._configuration
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler._logger
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler._colorManagement
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler._gmColorConverter
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.Draw(Aurigma.DesignAtoms.Canvas.RenderingContext, Aurigma.GraphicsMill.Bitmap, Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings, Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider, System.Boolean, System.Boolean, System.Boolean)
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.Draw(Aurigma.DesignAtoms.Canvas.RenderingContext, Aurigma.GraphicsMill.Bitmap, Aurigma.DesignAtoms.Canvas.ItemHandlers.DrawItemParams, Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings, Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider, System.Boolean, System.Boolean, System.Boolean)
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.ItemOnPermissionsChanged(System.Object, System.EventArgs)
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.Clone()
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.BeginUpdate()
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.EndUpdate()
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.Dispose()
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.OnTransformChanged(System.Object, System.EventArgs)
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.OnChanged()
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.GetDestinationColor(Aurigma.GraphicsMill.Color, Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider, Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings, System.Nullable<Aurigma.DesignAtoms.Model.Color.PixelFormat>, System.Single, System.Boolean, System.Boolean)
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.Dispose(System.Boolean)
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.IsEmpty
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.ControlPoints
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.UniqueId
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.Transform
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.Tag
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.Layer
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.IsUpdating
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.Index
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.Canvas
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.Name
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.BlendMode
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.Permissions
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.Data
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.Visible
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.Locked
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.SourceColorProfilesOrDefault
- Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler.Changed
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
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
| Type | Name | Description |
|---|---|---|
System.Object | sender | |
System.ComponentModel.PropertyChangedEventArgs | propertyChangedEventArgs |
Overrides
GetBorderColor
public Color GetBorderColor(IColorProfilesProvider profilesProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider | profilesProvider |
Returns
Aurigma.GraphicsMill.Color
GetAltBorderColor
public Color GetAltBorderColor(IColorProfilesProvider profilesProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider | profilesProvider |
Returns
Aurigma.GraphicsMill.Color
GetFillColor
public Color GetFillColor(IColorProfilesProvider profilesProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider | profilesProvider |
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
| Type | Name | Description |
|---|---|---|
System.Single | dpi |
Returns
System.Single
GetShapeDrawer
protected Drawer GetShapeDrawer(IRenderingColorSettings colorSettings, PixelFormat destinationPixelFormat, float scale, PointF offset, IColorProfilesProvider profilesProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings | colorSettings | |
| Aurigma.DesignAtoms.Model.Color.PixelFormat | destinationPixelFormat | |
System.Single | scale | |
| Aurigma.DesignAtoms.Model.Math.PointF | offset | |
| Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider | profilesProvider |
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
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Color.PixelFormat | destinationPixelFormat | |
| Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider | profilesProvider |
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
| Type | Name | Description |
|---|---|---|
Aurigma.GraphicsMill.AdvancedDrawing.Graphics | graphics | |
| Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings | colorSettings | |
| Aurigma.DesignAtoms.Model.Color.PixelFormat | destinationPixelFormat | |
| Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider | profilesProvider | |
System.Boolean | renderOnPdf | |
System.Boolean | pdfRenderKeepOriginalColors | |
System.Boolean | isPdfRenderDeviceProfileEnabled |
StrokeShape
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 | |
| Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings | colorSettings | |
| Aurigma.DesignAtoms.Model.Color.PixelFormat | destinationPixelFormat | |
| Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider | profilesProvider | |
System.Boolean | renderOnPdf | |
System.Boolean | pdfRenderKeepOriginalColors | |
System.Boolean | isPdfRenderDeviceProfileEnabled |
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
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Canvas.RenderingContext | renderingContext | |
Aurigma.GraphicsMill.AdvancedDrawing.Graphics | graphics | |
Aurigma.GraphicsMill.IImageParams | destImageParams | |
| Aurigma.DesignAtoms.Canvas.ItemHandlers.DrawItemParams | drawItemParams | |
| Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings | colorSettings | |
| Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider | profilesProvider | |
System.Boolean | rasterizeVectorLayers | |
System.Boolean | renderOnPdf | |
System.Boolean | isPreview | |
System.Boolean | isSingleColorTargetContainer | |
System.Boolean | isPdfRenderDeviceProfileEnabled |