• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class DrawImageAffineCommand

Draws an image transformed to fit a parallelogram defined by destination points.

Inheritance
object
DrawingCommand
DrawImageAffineCommand
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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.

Overrides
DrawingCommand.Clone()
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX