EmfStretchDiBits

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

public final class EmfStretchDiBits extends EmfBitmapRecordType

The EMR_STRETCHDIBITS record specifies a block transfer of pixels from a source bitmap to a destination rectangle, optionally in combination with a brush pattern, according to a specified raster operation, stretching or compressing the output to fit the dimensions of the destination, if necessary.

This record supports source images in JPEG and PNG formats. The Compression field in the source bitmap header specifies the image format. If the signs of the source and destination height and width fields differ, this record specifies a mirror-image copy of the source bitmap to the destination. That is, if cxSrc and cxDest have different signs, a mirror image of the source bitmap along the x-axis is specified. If cySrc and cyDest have different signs, a mirror image of the source bitmap along the y-axis is specified.

Constructors

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

Methods

MethodDescription
getBounds()Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that defines the destination bounding rectangle in device units.
setBounds(Rectangle value)Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that defines the destination bounding rectangle in device units.
getXDest()Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the destination rectangle.
setXDest(int value)Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the destination rectangle.
getYDest()Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the destination rectangle.
setYDest(int value)Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the destination rectangle.
getXSrc()Gets or sets a 32-bit signed integer that specifies the x-coordinate in pixels of the upper-left corner of the source rectangle.
setXSrc(int value)Gets or sets a 32-bit signed integer that specifies the x-coordinate in pixels of the upper-left corner of the source rectangle.
getYSrc()Gets or sets a 32-bit signed integer that specifies the y-coordinate in pixels of the upper-left corner of the source rectangle.
setYSrc(int value)Gets or sets a 32-bit signed integer that specifies the y-coordinate in pixels of the upper-left corner of the source rectangle.
getCxSrc()Gets or sets a 32-bit signed integer that specifies the width in pixels of the source rectangle.
setCxSrc(int value)Gets or sets a 32-bit signed integer that specifies the width in pixels of the source rectangle.
getCySrc()Gets or sets a 32-bit signed integer that specifies the height in pixels of the source rectangle.
setCySrc(int value)Gets or sets a 32-bit signed integer that specifies the height in pixels of the source rectangle.
getUsageSrc()Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the color table in the source bitmap header.
setUsageSrc(int value)Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the color table in the source bitmap header.
getBitBltRasterOperation()Gets or sets a 32-bit unsigned integer that specifies a raster operation code.
setBitBltRasterOperation(int value)Gets or sets a 32-bit unsigned integer that specifies a raster operation code.
getCxDest()Gets or sets a 32-bit signed integer that specifies the logical width of the destination rectangle.
setCxDest(int value)Gets or sets a 32-bit signed integer that specifies the logical width of the destination rectangle.
getCyDest()Gets or sets a 32-bit signed integer that specifies the logical height of the destination rectangle.
setCyDest(int value)Gets or sets a 32-bit signed integer that specifies the logical height of the destination rectangle.
getSourceBitmap()Gets or sets a buffer containing the source bitmap, which is not required to be contiguous with the fixed portion of the EMR_STRETCHDIBITS record.
setSourceBitmap(WmfDeviceIndependentBitmap value)Gets or sets a buffer containing the source bitmap, which is not required to be contiguous with the fixed portion of the EMR_STRETCHDIBITS record.

EmfStretchDiBits(EmfRecord source)

public EmfStretchDiBits(EmfRecord source)

Initializes a new instance of the EmfStretchDiBits class.

Parameters:

ParameterTypeDescription
sourceEmfRecordThe source.

getBounds()

public Rectangle getBounds()

Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that defines the destination bounding rectangle in device units.

Returns: Rectangle

setBounds(Rectangle value)

public void setBounds(Rectangle value)

Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that defines the destination bounding rectangle in device units.

Parameters:

ParameterTypeDescription
valueRectangle

getXDest()

public int getXDest()

Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the destination rectangle.

Returns: int

setXDest(int value)

public void setXDest(int value)

Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the destination rectangle.

Parameters:

ParameterTypeDescription
valueint

getYDest()

public int getYDest()

Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the destination rectangle.

Returns: int

setYDest(int value)

public void setYDest(int value)

Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the destination rectangle.

Parameters:

ParameterTypeDescription
valueint

getXSrc()

public int getXSrc()

Gets or sets a 32-bit signed integer that specifies the x-coordinate in pixels of the upper-left corner of the source rectangle.

Returns: int

setXSrc(int value)

public void setXSrc(int value)

Gets or sets a 32-bit signed integer that specifies the x-coordinate in pixels of the upper-left corner of the source rectangle.

Parameters:

ParameterTypeDescription
valueint

getYSrc()

public int getYSrc()

Gets or sets a 32-bit signed integer that specifies the y-coordinate in pixels of the upper-left corner of the source rectangle.

Returns: int

setYSrc(int value)

public void setYSrc(int value)

Gets or sets a 32-bit signed integer that specifies the y-coordinate in pixels of the upper-left corner of the source rectangle.

Parameters:

ParameterTypeDescription
valueint

getCxSrc()

public int getCxSrc()

Gets or sets a 32-bit signed integer that specifies the width in pixels of the source rectangle.

Returns: int

setCxSrc(int value)

public void setCxSrc(int value)

Gets or sets a 32-bit signed integer that specifies the width in pixels of the source rectangle.

Parameters:

ParameterTypeDescription
valueint

getCySrc()

public int getCySrc()

Gets or sets a 32-bit signed integer that specifies the height in pixels of the source rectangle.

Returns: int

setCySrc(int value)

public void setCySrc(int value)

Gets or sets a 32-bit signed integer that specifies the height in pixels of the source rectangle.

Parameters:

ParameterTypeDescription
valueint

getUsageSrc()

public int getUsageSrc()

Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the color table in the source bitmap header. This value MUST be in the DIBColors enumeration (section 2.1.9).

Returns: int

setUsageSrc(int value)

public void setUsageSrc(int value)

Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the color table in the source bitmap header. This value MUST be in the DIBColors enumeration (section 2.1.9).

Parameters:

ParameterTypeDescription
valueint

getBitBltRasterOperation()

public int getBitBltRasterOperation()

Gets or sets a 32-bit unsigned integer that specifies a raster operation code. These codes define how the color data of the source rectangle is to be combined with the color data of the destination rectangle and optionally a brush pattern, to achieve the final color.

Returns: int

setBitBltRasterOperation(int value)

public void setBitBltRasterOperation(int value)

Gets or sets a 32-bit unsigned integer that specifies a raster operation code. These codes define how the color data of the source rectangle is to be combined with the color data of the destination rectangle and optionally a brush pattern, to achieve the final color.

Parameters:

ParameterTypeDescription
valueint

getCxDest()

public int getCxDest()

Gets or sets a 32-bit signed integer that specifies the logical width of the destination rectangle.

Returns: int

setCxDest(int value)

public void setCxDest(int value)

Gets or sets a 32-bit signed integer that specifies the logical width of the destination rectangle.

Parameters:

ParameterTypeDescription
valueint

getCyDest()

public int getCyDest()

Gets or sets a 32-bit signed integer that specifies the logical height of the destination rectangle.

Returns: int

setCyDest(int value)

public void setCyDest(int value)

Gets or sets a 32-bit signed integer that specifies the logical height of the destination rectangle.

Parameters:

ParameterTypeDescription
valueint

getSourceBitmap()

public WmfDeviceIndependentBitmap getSourceBitmap()

Gets or sets a buffer containing the source bitmap, which is not required to be contiguous with the fixed portion of the EMR_STRETCHDIBITS record. Accordingly, fields in this buffer that are labeled “UndefinedSpace” are optional and MUST be ignored.

Returns: WmfDeviceIndependentBitmap

setSourceBitmap(WmfDeviceIndependentBitmap value)

public void setSourceBitmap(WmfDeviceIndependentBitmap value)

Gets or sets a buffer containing the source bitmap, which is not required to be contiguous with the fixed portion of the EMR_STRETCHDIBITS record. Accordingly, fields in this buffer that are labeled “UndefinedSpace” are optional and MUST be ignored.

Parameters:

ParameterTypeDescription
valueWmfDeviceIndependentBitmap