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 and Description |
---|
EmfGradientFill(EmfRecord source)
Initializes a new instance of the
EmfGradientFill class. |
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.
|
public EmfGradientFill(EmfRecord source)
Initializes a new instance of the EmfGradientFill
class.
source
- The source.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.
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.
public int getNVer()
Gets or sets a 32-bit unsigned integer that specifies the number of vertexes.
public void setNVer(int value)
Gets or sets a 32-bit unsigned integer that specifies the number of vertexes.
public int getNTri()
Gets or sets a 32-bit unsigned integer that specifies the number of rectangles or triangles to fill.
public void setNTri(int value)
Gets or sets a 32-bit unsigned integer that specifies the number of rectangles or triangles to fill.
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).
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).
public EmfVertexData getVertexData()
Gets or sets objects that specify the vertexes of either rectangles or triangles and the colors that correspond to them.
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.