Class EmfPlusDrawImage

Class EmfPlusDrawImage

Namespace: Aspose.Imaging.FileFormats.Emf.EmfPlus.Records
Assembly: Aspose.Imaging.dll (25.2.0)

The EmfPlusDrawImage record specifies drawing a scaled image.

public sealed class EmfPlusDrawImage : EmfPlusDrawingRecordType

Inheritance

objectMetaObjectEmfPlusRecordEmfPlusDrawingRecordTypeEmfPlusDrawImage

Inherited Members

EmfPlusRecord.Type, EmfPlusRecord.Flags, EmfPlusRecord.Size, EmfPlusRecord.DataSize, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

EmfPlusDrawImage(EmfPlusRecord)

Initializes a new instance of the Aspose.Imaging.FileFormats.Emf.EmfPlus.Records.EmfPlusDrawImage class.

public EmfPlusDrawImage(EmfPlusRecord source)

Parameters

source EmfPlusRecord

The source.

Properties

Compressed

Gets or sets a value indicating whether the PointData is compressed. If set, RectData contains an EmfPlusRect object (section 2.2.2.38). If clear, RectData contains an EmfPlusRectF object (section 2.2.2.39).

public bool Compressed { get; set; }

Property Value

bool

ImageAttributesId

Gets or sets the image attributes identifier A 32-bit unsigned integer that specifies the index of an optional EmfPlusImageAttributes object (section 2.2.1.5) in the EMF+ Object Table.

public int ImageAttributesId { get; set; }

Property Value

int

ObjectId

Gets or sets the object identifier. The index of an EmfPlusImage object (section 2.2.1.4) in the EMF+ Object Table, which specifies the image to render. The value MUST be zero to 63, inclusive.

public byte ObjectId { get; set; }

Property Value

byte

RectData

Gets or sets the rect data Either an EmfPlusRect or EmfPlusRectF object that defines the bounding box of the image. The portion of the image specified by the SrcRect field is scaled to fit this rectangle.

public RectangleF RectData { get; set; }

Property Value

RectangleF

SrcRect

Gets or sets the source rect An EmfPlusRectF object that specifies a portion of the image to be rendered. The portion of the image specified by this rectangle is scaled to fit the destination rectangle specified by the RectData field.

public RectangleF SrcRect { get; set; }

Property Value

RectangleF

SrcUnit

Gets or sets the source unit 32-bit signed integer that specifies the units of the SrcRect field. It MUST be the UnitTypePixel member of the UnitType enumeration (section 2.1.1.33).

public EmfPlusUnitType SrcUnit { get; set; }

Property Value

EmfPlusUnitType