EmfRectangle

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 EmfRectangle extends EmfDrawingRecordType

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

The current position is neither used nor updated by Rectangle. If a PS_NULL pen is used, the dimensions of the rectangle are 1 pixel less in height and 1 pixel less in width.

Constructors

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

Methods

MethodDescription
getBox()Gets 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.
setBox(Rectangle value)Gets 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.

EmfRectangle(EmfRecord source)

public EmfRectangle(EmfRecord source)

Initializes a new instance of the EmfRectangle class.

Parameters:

ParameterTypeDescription
sourceEmfRecordThe source.

EmfRectangle()

public EmfRectangle()

Initializes a new instance of the EmfRectangle class.

getBox()

public Rectangle getBox()

Gets 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.

Returns: Rectangle

setBox(Rectangle value)

public void setBox(Rectangle value)

Gets 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.

Parameters:

ParameterTypeDescription
valueRectangle