EmfGradientFill Class

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

Module: aspose.imaging.fileformats.emf.emf.records

Full Name: aspose.imaging.fileformats.emf.emf.records.EmfGradientFill

Inheritance: EmfDrawingRecordType

Aspose.Imaging Version: 24.6.0

Constructors

NameDescription
EmfGradientFill(source)Initializes a new instance of the EmfGradientFill class.

Properties

NameTypeAccessDescription
boundsRectangler/wGets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that specifies a
bounding rectangle, in inclusive-inclusive device units.
n_triintr/wGets or sets a 32-bit unsigned integer that specifies the number of rectangles or triangles to fill.
n_verintr/wGets or sets a 32-bit unsigned integer that specifies the number of vertexes.
sizeintr/wGets or sets the size of the record
typeEmfRecordTyper/wGets or sets the type.
ul_modeEmfGradientFillr/wGets 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).
vertex_dataEmfVertexDatar/wGets or sets objects that specify the vertexes of either rectangles or triangles and
the colors that correspond to them.

Methods

NameDescription
create_from_record(source)Initializes a new instance of the EmfRecord class.
create_from_type(type)Initializes a new instance of the EmfRecord class.

Constructor: EmfGradientFill(source)

 EmfGradientFill(source) 

Initializes a new instance of the EmfGradientFill class.

Parameters:

ParameterTypeDescription
sourceEmfRecordThe source.

Method: create_from_record(source) [static]

 create_from_record(source) 

Initializes a new instance of the EmfRecord class.

Parameters:

ParameterTypeDescription
sourceEmfRecordThe source.

Returns

TypeDescription
EmfRecord

Method: create_from_type(type) [static]

 create_from_type(type) 

Initializes a new instance of the EmfRecord class.

Parameters:

ParameterTypeDescription
typeEmfRecordTypeThe record type.

Returns

TypeDescription
EmfRecord