WmfRegion

Inheritance: java.lang.Object, com.aspose.imaging.fileformats.emf.MetaObject

public class WmfRegion extends MetaObject

The Region Object defines a potentially non-rectilinear shape defined by an array of scanlines.

Constructors

ConstructorDescription
WmfRegion()

Methods

MethodDescription
getNextInChain()Gets or sets the next in chain.
setNextInChain(short value)Gets or sets the next in chain.
getObjectType()Gets or sets the type of the object.
setObjectType(short value)Gets or sets the type of the object.
getObjectCount()Gets or sets the object count.
setObjectCount(int value)Gets or sets the object count.
getRegionSize()Gets or sets the size of the region.
setRegionSize(short value)Gets or sets the size of the region.
getScanCount()Gets or sets the scan count.
setScanCount(short value)Gets or sets the scan count.
getMaxScan()Gets or sets the maximum scan.
setMaxScan(short value)Gets or sets the maximum scan.
getBoundingRectangle()Gets or sets the bounding rectangle.
setBoundingRectangle(Rectangle value)Gets or sets the bounding rectangle.
getAScans()Gets or sets a scans.
setAScans(WmfScanObject[] value)Gets or sets a scans.

WmfRegion()

public WmfRegion()

getNextInChain()

public short getNextInChain()

Gets or sets the next in chain.

Value: A value that MUST be ignored.

Returns: short

setNextInChain(short value)

public void setNextInChain(short value)

Gets or sets the next in chain.

Value: A value that MUST be ignored.

Parameters:

ParameterTypeDescription
valueshort

getObjectType()

public short getObjectType()

Gets or sets the type of the object.

Value: The region identifier. It MUST be 0x0006.

Returns: short

setObjectType(short value)

public void setObjectType(short value)

Gets or sets the type of the object.

Value: The region identifier. It MUST be 0x0006.

Parameters:

ParameterTypeDescription
valueshort

getObjectCount()

public int getObjectCount()

Gets or sets the object count.

Value: A value that MUST be ignored.

Returns: int

setObjectCount(int value)

public void setObjectCount(int value)

Gets or sets the object count.

Value: A value that MUST be ignored.

Parameters:

ParameterTypeDescription
valueint

getRegionSize()

public short getRegionSize()

Gets or sets the size of the region.

Value: The size of the region in bytes plus the size of aScans in bytes.

Returns: short

setRegionSize(short value)

public void setRegionSize(short value)

Gets or sets the size of the region.

Value: The size of the region in bytes plus the size of aScans in bytes.

Parameters:

ParameterTypeDescription
valueshort

getScanCount()

public short getScanCount()

Gets or sets the scan count.

Value: The number of scanlines composing the region.

Returns: short

setScanCount(short value)

public void setScanCount(short value)

Gets or sets the scan count.

Value: The number of scanlines composing the region.

Parameters:

ParameterTypeDescription
valueshort

getMaxScan()

public short getMaxScan()

Gets or sets the maximum scan.

Value: The maximum number of points in any one scan in this region.

Returns: short

setMaxScan(short value)

public void setMaxScan(short value)

Gets or sets the maximum scan.

Value: The maximum number of points in any one scan in this region.

Parameters:

ParameterTypeDescription
valueshort

getBoundingRectangle()

public Rectangle getBoundingRectangle()

Gets or sets the bounding rectangle.

Value: A Rect object (section 2.2.2.18) that defines the bounding rectangle.

Returns: Rectangle

setBoundingRectangle(Rectangle value)

public void setBoundingRectangle(Rectangle value)

Gets or sets the bounding rectangle.

Value: A Rect object (section 2.2.2.18) that defines the bounding rectangle.

Parameters:

ParameterTypeDescription
valueRectangle

getAScans()

public WmfScanObject[] getAScans()

Gets or sets a scans.

Value: An array of Scan objects (section 2.2.2.21) that define the scanlines in the region.

Returns: com.aspose.imaging.fileformats.wmf.objects.WmfScanObject[]

setAScans(WmfScanObject[] value)

public void setAScans(WmfScanObject[] value)

Gets or sets a scans.

Value: An array of Scan objects (section 2.2.2.21) that define the scanlines in the region.

Parameters:

ParameterTypeDescription
valueWmfScanObject[]