Class EmfGradientFill
Namespace: Aspose.Imaging.FileFormats.Emf.Emf.Records
Assembly: Aspose.Imaging.dll (25.2.0)
The EMR_GRADIENTFILL record specifies filling rectangles or triangles with gradients of color.
public sealed class EmfGradientFill : EmfDrawingRecordType
Inheritance
object ← MetaObject ← EmfRecord ← EmfDrawingRecordType ← EmfGradientFill
Inherited Members
EmfRecord.Type, EmfRecord.Size, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
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
EmfGradientFill(EmfRecord)
Initializes a new instance of the Aspose.Imaging.FileFormats.Emf.Emf.Records.EmfGradientFill class.
public EmfGradientFill(EmfRecord source)
Parameters
source
EmfRecord
The source.
Properties
Bounds
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 Rectangle Bounds { get; set; }
Property Value
NTri
Gets or sets a 32-bit unsigned integer that specifies the number of rectangles or triangles to fill.
public int NTri { get; set; }
Property Value
NVer
Gets or sets a 32-bit unsigned integer that specifies the number of vertexes.
public int NVer { get; set; }
Property Value
UlMode
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 EmfGradientFill UlMode { get; set; }
Property Value
VertexData
Gets or sets objects that specify the vertexes of either rectangles or triangles and the colors that correspond to them.
public EmfVertexData VertexData { get; set; }