public final class EmfSetDiBitsToDevice extends EmfBitmapRecordType
The EMR_SETDIBITSTODEVICE record specifies a block transfer of pixels from specified scan lines of a source bitmap to a destination rectangle.
This record supports source images in JPEG and PNG format. The Compression field in the source bitmap header specifies the image format.
Constructor and Description |
---|
EmfSetDiBitsToDevice(EmfRecord source)
Initializes a new instance of the
EmfSetDiBitsToDevice class. |
Modifier and Type | Method and Description |
---|---|
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.
|
int |
getCScans()
Gets or sets a 32-bit unsigned integer that specifies the number of scan lines.
|
int |
getCxSrc()
Gets or sets a 32-bit signed integer that specifies the width in pixels of the source rectangle.
|
int |
getCySrc()
Gets or sets a 32-bit signed integer that specifies the height in pixels of the source rectangle
|
int |
getIStartScan()
Gets or sets a 32-bit unsigned integer that specifies the first scan line in the array.
|
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_SETDIBITSTODEVICE record.
|
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.
|
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.
|
int |
getXSrc()
Gets or sets a 32-bit signed integer that specifies the x-coordinate in pixels of the lower-left
corner of the source rectangle.
|
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.
|
int |
getYSrc()
Gets or sets a 32-bit signed integer that specifies the y-coordinate in pixels of the lower-left
corner of the source rectangle.
|
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.
|
void |
setCScans(int value)
Gets or sets a 32-bit unsigned integer that specifies the number of scan lines.
|
void |
setCxSrc(int value)
Gets or sets a 32-bit signed integer that specifies the width in pixels of the source rectangle.
|
void |
setCySrc(int value)
Gets or sets a 32-bit signed integer that specifies the height in pixels of the source rectangle
|
void |
setIStartScan(int value)
Gets or sets a 32-bit unsigned integer that specifies the first scan line in the array.
|
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_SETDIBITSTODEVICE record.
|
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.
|
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.
|
void |
setXSrc(int value)
Gets or sets a 32-bit signed integer that specifies the x-coordinate in pixels of the lower-left
corner of the source rectangle.
|
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.
|
void |
setYSrc(int value)
Gets or sets a 32-bit signed integer that specifies the y-coordinate in pixels of the lower-left
corner of the source rectangle.
|
public EmfSetDiBitsToDevice(EmfRecord source)
Initializes a new instance of the EmfSetDiBitsToDevice
class.
source
- The source.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.
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.
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.
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.
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.
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.
public int getXSrc()
Gets or sets a 32-bit signed integer that specifies the x-coordinate in pixels of the lower-left corner of the source rectangle.
public void setXSrc(int value)
Gets or sets a 32-bit signed integer that specifies the x-coordinate in pixels of the lower-left corner of the source rectangle.
public int getYSrc()
Gets or sets a 32-bit signed integer that specifies the y-coordinate in pixels of the lower-left corner of the source rectangle.
public void setYSrc(int value)
Gets or sets a 32-bit signed integer that specifies the y-coordinate in pixels of the lower-left corner of the source rectangle.
public int getCxSrc()
Gets or sets a 32-bit signed integer that specifies the width in pixels of the source rectangle.
public void setCxSrc(int value)
Gets or sets a 32-bit signed integer that specifies the width in pixels of the source rectangle.
public int getCySrc()
Gets or sets a 32-bit signed integer that specifies the height in pixels of the source rectangle
public void setCySrc(int value)
Gets or sets a 32-bit signed integer that specifies the height in pixels of the source rectangle
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).
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).
public int getIStartScan()
Gets or sets a 32-bit unsigned integer that specifies the first scan line in the array.
public void setIStartScan(int value)
Gets or sets a 32-bit unsigned integer that specifies the first scan line in the array.
public int getCScans()
Gets or sets a 32-bit unsigned integer that specifies the number of scan lines.
public void setCScans(int value)
Gets or sets a 32-bit unsigned integer that specifies the number of scan lines.
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_SETDIBITSTODEVICE record. Accordingly, fields in this buffer that are labeled "UndefinedSpace" are optional and MUST be ignored.
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_SETDIBITSTODEVICE record. Accordingly, fields in this buffer that are labeled "UndefinedSpace" are optional and MUST be ignored.