Packages

 

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

Classes

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

Class EmfGradientFill

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


    public final class EmfGradientFill
    extends EmfDrawingRecordType

    The EMR_GRADIENTFILL record specifies filling rectangles or triangles with gradients of color.

    An EMR_GRADIENTFILL record that specifies that the three vertexes of a triangle SHOULD fill the figure with smooth gradients of colors.[85] An EMR_GRADIENTFILL record that specifies that the upper-left and lower-right vertexes of a rectangle SHOULD fill the figure with smooth gradients of color. There are two gradient fill modes in the GradientFill enumeration that can be used when drawing a rectangle. In GRADIENT_FILL_RECT_H mode, the rectangle is filled from left to right. In GRADIENT_FILL_RECT_V mode, the rectangle is filled from top to bottom. Note An EMR_GRADIENTFILL record MUST ignore the Alpha fields in the TriVertex objects. An EMR_ALPHABLEND record (section 2.3.1.1) that immediately follows the EMR_GRADIENTFILL record can be used to apply an alpha transparency gradient to the filled area.

    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Rectangle getBounds()
      Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that specifies a bounding rectangle, in inclusive-inclusive device units.
      int getNTri()
      Gets or sets a 32-bit unsigned integer that specifies the number of rectangles or triangles to fill.
      int getNVer()
      Gets or sets a 32-bit unsigned integer that specifies the number of vertexes.
      int getUlMode()
      Gets or sets a 32-bit unsigned integer that specifies the gradient fill mode.
      EmfVertexData getVertexData()
      Gets or sets objects that specify the vertexes of either rectangles or triangles and the colors that correspond to them.
      void setBounds(Rectangle value)
      Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that specifies a bounding rectangle, in inclusive-inclusive device units.
      void setNTri(int value)
      Gets or sets a 32-bit unsigned integer that specifies the number of rectangles or triangles to fill.
      void setNVer(int value)
      Gets or sets a 32-bit unsigned integer that specifies the number of vertexes.
      void setUlMode(int value)
      Gets or sets a 32-bit unsigned integer that specifies the gradient fill mode.
      void setVertexData(EmfVertexData value)
      Gets or sets objects that specify the vertexes of either rectangles or triangles and the colors that correspond to them.
    • Constructor Detail

      • EmfGradientFill

        public EmfGradientFill(EmfRecord source)

        Initializes a new instance of the EmfGradientFill class.

        Parameters:
        source - The source.
    • Method Detail

      • getBounds

        public Rectangle getBounds()

        Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that specifies a bounding rectangle, in inclusive-inclusive device units.

      • setBounds

        public void setBounds(Rectangle value)

        Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that specifies a bounding rectangle, in inclusive-inclusive device units.

      • getNVer

        public int getNVer()

        Gets or sets a 32-bit unsigned integer that specifies the number of vertexes.

      • setNVer

        public void setNVer(int value)

        Gets or sets a 32-bit unsigned integer that specifies the number of vertexes.

      • getNTri

        public int getNTri()

        Gets or sets a 32-bit unsigned integer that specifies the number of rectangles or triangles to fill.

      • setNTri

        public void setNTri(int value)

        Gets or sets a 32-bit unsigned integer that specifies the number of rectangles or triangles to fill.

      • getUlMode

        public int getUlMode()

        Gets or sets a 32-bit unsigned integer that specifies the gradient fill mode. The value MUST be in the GradientFill enumeration (section 2.1.15).

      • setUlMode

        public void setUlMode(int value)

        Gets or sets a 32-bit unsigned integer that specifies the gradient fill mode. The value MUST be in the GradientFill enumeration (section 2.1.15).

      • getVertexData

        public EmfVertexData getVertexData()

        Gets or sets objects that specify the vertexes of either rectangles or triangles and the colors that correspond to them.

      • setVertexData

        public void setVertexData(EmfVertexData value)

        Gets or sets objects that specify the vertexes of either rectangles or triangles and the colors that correspond to them.