EmfPlusDrawString

Inheritance: java.lang.Object, com.aspose.imaging.fileformats.emf.MetaObject, com.aspose.imaging.fileformats.emf.emfplus.records.EmfPlusRecord, com.aspose.imaging.fileformats.emf.emfplus.records.EmfPlusDrawingRecordType

public final class EmfPlusDrawString extends EmfPlusDrawingRecordType

The EmfPlusDrawString record specifies text output with string formatting

Constructors

ConstructorDescription
EmfPlusDrawString(EmfPlusRecord source)Initializes a new instance of the EmfPlusDrawString class.

Methods

MethodDescription
isColor()Gets or sets a value indicating whether this instance is color.
setColor(boolean value)Gets or sets a value indicating whether this instance is color.
getObjectId()Gets or sets the object identifier.
setObjectId(byte value)Gets or sets the object identifier.
getBrushId()Gets or sets the brush identifier A 32-bit unsigned integer that specifies the brush, the content of which is determined by the S bit in the Flags field.
setBrushId(int value)Gets or sets the brush identifier A 32-bit unsigned integer that specifies the brush, the content of which is determined by the S bit in the Flags field.
getFormatId()Gets or sets the format identifier A 32-bit unsigned integer that specifies the index of an optional EmfPlusStringFormat object (section 2.2.1.9) in the EMF+ Object Table.
setFormatId(int value)Gets or sets the format identifier A 32-bit unsigned integer that specifies the index of an optional EmfPlusStringFormat object (section 2.2.1.9) in the EMF+ Object Table.
getLength()Gets or sets the length 32-bit unsigned integer that specifies the number of characters in the string.
setLength(int value)Gets or sets the length 32-bit unsigned integer that specifies the number of characters in the string.
getLayoutRect()Gets or sets the layout rect An EmfPlusRectF object (section 2.2.2.39) that defines the bounding area of the destination that will receive the string
setLayoutRect(RectangleF value)Gets or sets the layout rect An EmfPlusRectF object (section 2.2.2.39) that defines the bounding area of the destination that will receive the string
getStringData()Gets or sets the string data An array of 16-bit Unicode characters that specifies the string to be drawn
setStringData(String value)Gets or sets the string data An array of 16-bit Unicode characters that specifies the string to be drawn

EmfPlusDrawString(EmfPlusRecord source)

public EmfPlusDrawString(EmfPlusRecord source)

Initializes a new instance of the EmfPlusDrawString class.

Parameters:

ParameterTypeDescription
sourceEmfPlusRecordThe source.

isColor()

public boolean isColor()

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

Value: true if this instance is color; otherwise, false.

Returns: boolean

setColor(boolean value)

public void setColor(boolean value)

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

Value: true if this instance is color; otherwise, false.

Parameters:

ParameterTypeDescription
valueboolean

getObjectId()

public byte getObjectId()

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

Value: The object identifier.

Returns: byte

setObjectId(byte value)

public void setObjectId(byte value)

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

Value: The object identifier.

Parameters:

ParameterTypeDescription
valuebyte

getBrushId()

public int getBrushId()

Gets or sets the brush identifier A 32-bit unsigned integer that specifies the brush, the content of which is determined by the S bit in the Flags field. This definition is used to paint the foreground text color; that is, just the glyphs themselves.

Returns: int

setBrushId(int value)

public void setBrushId(int value)

Gets or sets the brush identifier A 32-bit unsigned integer that specifies the brush, the content of which is determined by the S bit in the Flags field. This definition is used to paint the foreground text color; that is, just the glyphs themselves.

Parameters:

ParameterTypeDescription
valueint

getFormatId()

public int getFormatId()

Gets or sets the format identifier A 32-bit unsigned integer that specifies the index of an optional EmfPlusStringFormat object (section 2.2.1.9) in the EMF+ Object Table. This object specifies text layout information and display manipulations to be applied to a string

Returns: int

setFormatId(int value)

public void setFormatId(int value)

Gets or sets the format identifier A 32-bit unsigned integer that specifies the index of an optional EmfPlusStringFormat object (section 2.2.1.9) in the EMF+ Object Table. This object specifies text layout information and display manipulations to be applied to a string

Parameters:

ParameterTypeDescription
valueint

getLength()

public int getLength()

Gets or sets the length 32-bit unsigned integer that specifies the number of characters in the string.

Returns: int

setLength(int value)

public void setLength(int value)

Gets or sets the length 32-bit unsigned integer that specifies the number of characters in the string.

Parameters:

ParameterTypeDescription
valueint

getLayoutRect()

public RectangleF getLayoutRect()

Gets or sets the layout rect An EmfPlusRectF object (section 2.2.2.39) that defines the bounding area of the destination that will receive the string

Returns: RectangleF

setLayoutRect(RectangleF value)

public void setLayoutRect(RectangleF value)

Gets or sets the layout rect An EmfPlusRectF object (section 2.2.2.39) that defines the bounding area of the destination that will receive the string

Parameters:

ParameterTypeDescription
valueRectangleF

getStringData()

public String getStringData()

Gets or sets the string data An array of 16-bit Unicode characters that specifies the string to be drawn

Returns: java.lang.String

setStringData(String value)

public void setStringData(String value)

Gets or sets the string data An array of 16-bit Unicode characters that specifies the string to be drawn

Parameters:

ParameterTypeDescription
valuejava.lang.String