EmfRectangle Class

Summary: The EMR_RECTANGLE record draws a rectangle. The rectangle is outlined by using the current pen
and filled by using the current brush.

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

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

Inheritance: EmfDrawingRecordType

Aspose.Imaging Version: 24.5.0

Constructors

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

Properties

NameTypeAccessDescription
boxRectangler/wGets or sets a 128-bit WMF RectL object, specified in [MS-WMF] section 2.2.2.19, which
specifies the inclusive-inclusive rectangle to draw.
sizeintr/wGets or sets the size of the record
typeEmfRecordTyper/wGets or sets the type.

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: EmfRectangle()

 EmfRectangle() 

Initializes a new instance of the EmfRectangle class.

Constructor: EmfRectangle(source)

 EmfRectangle(source) 

Initializes a new instance of the EmfRectangle 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