EmfSetDiBitsToDevice

EmfSetDiBitsToDevice class

The EMR_SETDIBITSTODEVICE record specifies a block transfer of pixels from specified scan lines of a source bitmap to a destination rectangle.

public sealed class EmfSetDiBitsToDevice : EmfBitmapRecordType

Constructors

NameDescription
EmfSetDiBitsToDevice(EmfRecord)Initializes a new instance of the EmfSetDiBitsToDevice class.

Properties

NameDescription
Bounds { get; set; }Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that defines the destination bounding rectangle in device units.
CScans { get; set; }Gets or sets a 32-bit unsigned integer that specifies the number of scan lines.
CxSrc { get; set; }Gets or sets a 32-bit signed integer that specifies the width in pixels of the source rectangle.
CySrc { get; set; }Gets or sets a 32-bit signed integer that specifies the height in pixels of the source rectangle
IStartScan { get; set; }Gets or sets a 32-bit unsigned integer that specifies the first scan line in the array.
Size { get; set; }Gets or sets the size of the record
SourceBitmap { get; set; }Gets or sets a buffer containing the source bitmap, which is not required to be contiguous with the fixed portion of the EMR_SETDIBITSTODEVICE record. Accordingly, fields in this buffer that are labeled “UndefinedSpace” are optional and MUST be ignored.
Type { get; set; }Gets or sets the type.
UsageSrc { get; set; }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).
XDest { get; set; }Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the destination rectangle.
XSrc { get; set; }Gets or sets a 32-bit signed integer that specifies the x-coordinate in pixels of the lower-left corner of the source rectangle.
YDest { get; set; }Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the destination rectangle.
YSrc { get; set; }Gets or sets a 32-bit signed integer that specifies the y-coordinate in pixels of the lower-left corner of the source rectangle.

Remarks

This record supports source images in JPEG and PNG format. The Compression field in the source bitmap header specifies the image format.

See Also