Class EmfPlusDrawDriverString

Class EmfPlusDrawDriverString

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

The EmfPlusDrawDriverString record specifies text output with character positions.

public sealed class EmfPlusDrawDriverString : EmfPlusDrawingRecordType

Inheritance

objectMetaObjectEmfPlusRecordEmfPlusDrawingRecordTypeEmfPlusDrawDriverString

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

EmfPlusDrawDriverString(EmfPlusRecord)

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

public EmfPlusDrawDriverString(EmfPlusRecord source)

Parameters

source EmfPlusRecord

The source.

Properties

BrushId

Gets or sets the brush identifier A 32-bit unsigned integer that specifies either the foreground color of the text or a graphics brush, depending on the value of the S flag in the Flags

public int BrushId { get; set; }

Property Value

int

DriverStringOptionsFlags

Gets or sets the driver string options flags A 32-bit unsigned integer that specifies the spacing, orientation, and quality of rendering for the string.

public EmfPlusDriverStringOptionsFlags DriverStringOptionsFlags { get; set; }

Property Value

EmfPlusDriverStringOptionsFlags

GlyphCount

Gets or sets the glyph count A 32-bit unsigned integer that specifies number of glyphs in the string

public int GlyphCount { get; set; }

Property Value

int

GlyphPos

Gets or sets the glyph positions array An array of EmfPlusPointF objects (section 2.2.2.36) that specify the output position of each character glyph. There MUST be GlyphCount elements, which have a one-to-one correspondence with the elements in the Glyphs array. Glyph positions are calculated from the position of the first glyph if the DriverStringOptionsRealizedAdvance flag in DriverStringOptions flags is set. In this case, GlyphPos specifies the position of the first glyph only.

public PointF[] GlyphPos { get; set; }

Property Value

PointF[]

Glyphs

Gets or sets the glyphs array An array of 16-bit values that define the text string to draw. If the DriverStringOptionsCmapLookup flag in the DriverStringOptionsFlags field is set, each value in this array specifies a Unicode character. Otherwise, each value specifies an index to a character glyph in the EmfPlusFont object specified by the ObjectId value in Flags field.

public short[] Glyphs { get; set; }

Property Value

short[]

IsColor

Gets or sets a value indicating whether this instance is color. This bit indicates the type of data in the BrushId field. If set, BrushId specifies the color value in an EmfPlusARGB object (section 2.2.2.1). If clear, BrushId contains the EMF+ Object Table index of an EmfPlusBrush object (section 2.2.1.1).

public bool IsColor { get; set; }

Property Value

bool

MatrixPresent

Gets or sets if the matrix present flag A 32-bit unsigned integer that specifies whether a transform matrix is present in the TransformMatrix field 0 - no matrix present. 1 - transform matrix is in TransformMatrix field

public int MatrixPresent { get; set; }

Property Value

int

ObjectId

Gets or sets the object identifier. The EMF+ Object Table index of an EmfPlusFont object (section 2.2.1.3) to render the text. The value MUST be zero to 63, inclusive.

public byte ObjectId { get; set; }

Property Value

byte

TransformMatrix

Gets or sets the transform matrix An optional EmfPlusTransformMatrix object (section 2.2.2.47) that specifies the transformation to apply to each value in the text array. The presence of this data is determined from the MatrixPresent field.

public Matrix TransformMatrix { get; set; }

Property Value

Matrix