EmfStretchDiBits Class

Summary: 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.

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

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

Inheritance: EmfBitmapRecordType

Aspose.Imaging Version: 24.6.0

Constructors

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

Properties

NameTypeAccessDescription
bit_blt_raster_operationWmfTernaryRasterOperationr/wGets 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.
boundsRectangler/wGets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that defines the
destination bounding rectangle in device units.
cx_destintr/wGets or sets a 32-bit signed integer that specifies the logical width of the destination rectangle.
cx_srcintr/wGets or sets a 32-bit signed integer that specifies the width in pixels of the source rectangle.
cy_destintr/wGets or sets a 32-bit signed integer that specifies the logical height of the destination rectangle.
cy_srcintr/wGets or sets a 32-bit signed integer that specifies the height in pixels of the source rectangle.
sizeintr/wGets or sets the size of the record
source_bitmapWmfDeviceIndependentBitmapr/wGets 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.
typeEmfRecordTyper/wGets or sets the type.
usage_srcEmfDibColorsr/wGets 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).
x_destintr/wGets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left
corner of the destination rectangle.
x_srcintr/wGets or sets a 32-bit signed integer that specifies the x-coordinate in pixels of the upper-left
corner of the source rectangle.
y_destintr/wGets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left
corner of the destination rectangle.
y_srcintr/wGets or sets a 32-bit signed integer that specifies the y-coordinate in pixels of the upper-left
corner of the source rectangle.

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: EmfStretchDiBits(source)

 EmfStretchDiBits(source) 

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