Packages

 

com.aspose.imaging.fileformats.emf.emfplus.records

Class EmfPlusDrawString

  • All Implemented Interfaces:
    com.aspose.imaging_internal.fileformats.emf.IRecord, Cloneable


    public final class EmfPlusDrawString
    extends EmfPlusDrawingRecordType

    The EmfPlusDrawString record specifies text output with string formatting

    • Constructor Summary

      Constructors 
      Constructor and Description
      EmfPlusDrawString(EmfPlusRecord source)
      Initializes a new instance of the EmfPlusDrawString class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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.
      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.
      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
      int getLength()
      Gets or sets the length 32-bit unsigned integer that specifies the number of characters in the string.
      byte getObjectId()
      Gets or sets the object identifier.
      String getStringData()
      Gets or sets the string data An array of 16-bit Unicode characters that specifies the string to be drawn
      boolean isColor()
      Gets or sets a value indicating whether this instance is color.
      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.
      void setColor(boolean value)
      Gets or sets a value indicating whether this instance is color.
      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.
      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
      void setLength(int value)
      Gets or sets the length 32-bit unsigned integer that specifies the number of characters in the string.
      void setObjectId(byte value)
      Gets or sets the object identifier.
      void setStringData(String value)
      Gets or sets the string data An array of 16-bit Unicode characters that specifies the string to be drawn
    • Constructor Detail

      • EmfPlusDrawString

        public EmfPlusDrawString(EmfPlusRecord source)

        Initializes a new instance of the EmfPlusDrawString class.

        Parameters:
        source - The source.
    • Method Detail

      • 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.
      • setColor

        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.
      • 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.
      • setObjectId

        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.
      • 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.

      • setBrushId

        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.

      • 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

      • setFormatId

        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

      • getLength

        public int getLength()

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

      • setLength

        public void setLength(int value)

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

      • 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

      • setLayoutRect

        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

      • getStringData

        public String getStringData()

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

      • setStringData

        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