Class DrawImageAffineCommand
Draws an image transformed to fit a parallelogram defined by destination points.
Inherited Members
Namespace: DRIT.Drawing.Vector.Commands
Assembly: DRIT.Drawing.dll
Syntax
public sealed class DrawImageAffineCommand : DrawingCommand
Constructors
DrawImageAffineCommand(Image, PointF[], RectangleF, GraphicsUnit, ImageAttributes?)
Initializes a new DrawImageAffineCommand, cloning the image and attributes.
Declaration
public DrawImageAffineCommand(Image image, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit, ImageAttributes? attr)
Parameters
| Type | Name | Description |
|---|---|---|
| Image | image | |
| PointF[] | destPoints | |
| RectangleF | srcRect | |
| GraphicsUnit | srcUnit | |
| ImageAttributes | attr |
Properties
Attr
Gets the image attributes, or null.
Declaration
public ImageAttributes? Attr { get; }
Property Value
| Type | Description |
|---|---|
| ImageAttributes |
DestPoints
Gets the destination points defining a parallelogram.
Declaration
public PointF[] DestPoints { get; }
Property Value
| Type | Description |
|---|---|
| PointF[] |
Image
Gets the image to draw.
Declaration
public Image Image { get; }
Property Value
| Type | Description |
|---|---|
| Image |
SrcRect
Gets the source rectangle.
Declaration
public RectangleF SrcRect { get; }
Property Value
| Type | Description |
|---|---|
| RectangleF |
SrcUnit
Gets the source unit.
Declaration
public GraphicsUnit SrcUnit { get; }
Property Value
| Type | Description |
|---|---|
| GraphicsUnit |
Methods
Clone()
Creates a deep copy of this command.
Declaration
public override DrawingCommand Clone()
Returns
| Type | Description |
|---|---|
| DrawingCommand | A new DrawingCommand with the same state. |