Packages

 

com.aspose.imaging.fileformats.emf.emfplus.objects

Classes

com.aspose.imaging.fileformats.emf.emfplus.objects

Class EmfPlusLinearGradientBrushData

  • All Implemented Interfaces:
    Cloneable


    public final class EmfPlusLinearGradientBrushData
    extends EmfPlusBaseBrushData

    The EmfPlusLinearGradientBrushData object specifies a linear gradient for a graphics brush.

    • Constructor Detail

      • EmfPlusLinearGradientBrushData

        public EmfPlusLinearGradientBrushData()
    • Method Detail

      • getBrushDataFlags

        public int getBrushDataFlags()

        Gets or sets the brush data flags.

        Value: BrushDataFlags (4 bytes): A 32-bit unsigned integer that specifies the data in the OptionalData field. This value MUST be composed of EmfPlusBrushDataFlags (section 2.1.2.1).
      • setBrushDataFlags

        public void setBrushDataFlags(int value)

        Gets or sets the brush data flags.

        Value: BrushDataFlags (4 bytes): A 32-bit unsigned integer that specifies the data in the OptionalData field. This value MUST be composed of EmfPlusBrushDataFlags (section 2.1.2.1).
      • getEndArgb32Color

        public int getEndArgb32Color()

        Gets or sets the end color.

        Value: An EmfPlusARGB object that specifies the color at the ending boundary point of the linear gradient brush.
      • setEndArgb32Color

        public void setEndArgb32Color(int value)

        Gets or sets the end color.

        Value: An EmfPlusARGB object that specifies the color at the ending boundary point of the linear gradient brush.
      • getOptionalData

        public EmfPlusLinearGradientBrushOptionalData getOptionalData()

        Gets or sets the optional data.

        Value: An optional EmfPlusLinearGradientBrushOptionalData object (section 2.2.2.25) that specifies additional data for the linear gradient brush. The specific contents of this field are determined by the value of the BrushDataFlags field.
      • setOptionalData

        public void setOptionalData(EmfPlusLinearGradientBrushOptionalData value)

        Gets or sets the optional data.

        Value: An optional EmfPlusLinearGradientBrushOptionalData object (section 2.2.2.25) that specifies additional data for the linear gradient brush. The specific contents of this field are determined by the value of the BrushDataFlags field.
      • getRectF

        public RectangleF getRectF()

        Gets or sets the rect f.

        Value: An EmfPlusRectF object (section 2.2.2.39) that specifies the starting and ending points of the gradient line. The upper-left corner of the rectangle is the starting point. The lower-right corner is the ending point.
      • setRectF

        public void setRectF(RectangleF value)

        Gets or sets the rect f.

        Value: An EmfPlusRectF object (section 2.2.2.39) that specifies the starting and ending points of the gradient line. The upper-left corner of the rectangle is the starting point. The lower-right corner is the ending point.
      • getStartArgb32Color

        public int getStartArgb32Color()

        Gets or sets the start color.

        Value: An EmfPlusARGB object (section 2.2.2.1) that specifies the color at the starting boundary point of the linear gradient brush.
      • setStartArgb32Color

        public void setStartArgb32Color(int value)

        Gets or sets the start color.

        Value: An EmfPlusARGB object (section 2.2.2.1) that specifies the color at the starting boundary point of the linear gradient brush.
      • getWrapMode

        public int getWrapMode()

        Gets or sets the wrap mode.

        Value: A 32-bit signed integer from the WrapMode enumeration (section 2.1.1.34) that specifies whether to paint the area outside the boundary of the brush. When painting outside the boundary, the wrap mode specifies how the color gradient is repeated.
      • setWrapMode

        public void setWrapMode(int value)

        Gets or sets the wrap mode.

        Value: A 32-bit signed integer from the WrapMode enumeration (section 2.1.1.34) that specifies whether to paint the area outside the boundary of the brush. When painting outside the boundary, the wrap mode specifies how the color gradient is repeated.