EmfGradientFill
Inheritance: java.lang.Object, com.aspose.imaging.fileformats.emf.MetaObject, com.aspose.imaging.fileformats.emf.emf.records.EmfRecord, com.aspose.imaging.fileformats.emf.emf.records.EmfDrawingRecordType
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.
Constructors
Constructor | Description |
---|---|
EmfGradientFill(EmfRecord source) | Initializes a new instance of the EmfGradientFill class. |
Methods
Method | Description |
---|---|
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(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() | Gets or sets a 32-bit unsigned integer that specifies the number of vertexes. |
setNVer(int value) | Gets or sets a 32-bit unsigned integer that specifies the number of vertexes. |
getNTri() | Gets or sets a 32-bit unsigned integer that specifies the number of rectangles or triangles to fill. |
setNTri(int value) | Gets or sets a 32-bit unsigned integer that specifies the number of rectangles or triangles to fill. |
getUlMode() | Gets or sets a 32-bit unsigned integer that specifies the gradient fill mode. |
setUlMode(int value) | Gets or sets a 32-bit unsigned integer that specifies the gradient fill mode. |
getVertexData() | Gets or sets objects that specify the vertexes of either rectangles or triangles and the colors that correspond to them. |
setVertexData(EmfVertexData value) | Gets or sets objects that specify the vertexes of either rectangles or triangles and the colors that correspond to them. |
EmfGradientFill(EmfRecord source)
public EmfGradientFill(EmfRecord source)
Initializes a new instance of the EmfGradientFill
class.
Parameters:
Parameter | Type | Description |
---|---|---|
source | EmfRecord | The source. |
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.
Returns: Rectangle
setBounds(Rectangle value)
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.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Rectangle |
getNVer()
public int getNVer()
Gets or sets a 32-bit unsigned integer that specifies the number of vertexes.
Returns: int
setNVer(int value)
public void setNVer(int value)
Gets or sets a 32-bit unsigned integer that specifies the number of vertexes.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getNTri()
public int getNTri()
Gets or sets a 32-bit unsigned integer that specifies the number of rectangles or triangles to fill.
Returns: int
setNTri(int value)
public void setNTri(int value)
Gets or sets a 32-bit unsigned integer that specifies the number of rectangles or triangles to fill.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
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).
Returns: int
setUlMode(int value)
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).
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getVertexData()
public EmfVertexData getVertexData()
Gets or sets objects that specify the vertexes of either rectangles or triangles and the colors that correspond to them.
Returns: EmfVertexData
setVertexData(EmfVertexData value)
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.
Parameters:
Parameter | Type | Description |
---|---|---|
value | EmfVertexData |