public final class EmfStretchBlt extends EmfBitmapRecordType
The EMR_STRETCHBLT 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.
Constructor and Description |
---|
EmfStretchBlt()
Initializes a new instance of the
EmfStretchBlt class. |
EmfStretchBlt(EmfRecord source)
Initializes a new instance of the
EmfStretchBlt class. |
Modifier and Type | Method and Description |
---|---|
int |
getArgb32BkColorSrc()
Gets or sets a WMF ColorRef object ([MS-WMF] section 2.2.2.8 that specifies the
background color of the source bitmap.
|
int |
getBitBltRasterOperation()
Gets or sets a 32-bit unsigned integer that specifies the raster operation
code.
|
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 |
getCxDest()
Gets or sets a 32-bit signed integer that specifies the logical width of the destination rectangle.
|
int |
getCxSrc()
Gets or sets a 32-bit signed integer that specifies the logical width of the source rectangle.
|
int |
getCyDest()
Gets or sets a 32-bit signed integer that specifies the logical height of the destination rectangle.
|
int |
getCySrc()
Gets or sets a 32-bit signed integer that specifies the logical height of the source rectangle.
|
Rectangle |
getDestRect()
Gets or sets the dest rect.
|
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_STRETCHBLT record.
|
Rectangle |
getSrcRect()
Gets or sets the source rect.
|
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.
|
Matrix |
getXformSrc()
Gets or sets an XForm object (section 2.2.28) that specifies a world-space to page-space transform to apply to the source bitmap.
|
int |
getXSrc()
Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-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 logical y-coordinate of the upper-left
corner of the source rectangle.
|
void |
setArgb32BkColorSrc(int value)
Gets or sets a WMF ColorRef object ([MS-WMF] section 2.2.2.8 that specifies the
background color of the source bitmap.
|
void |
setBitBltRasterOperation(int value)
Gets or sets a 32-bit unsigned integer that specifies the raster operation
code.
|
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 |
setCxDest(int value)
Gets or sets a 32-bit signed integer that specifies the logical width of the destination rectangle.
|
void |
setCxSrc(int value)
Gets or sets a 32-bit signed integer that specifies the logical width of the source rectangle.
|
void |
setCyDest(int value)
Gets or sets a 32-bit signed integer that specifies the logical height of the destination rectangle.
|
void |
setCySrc(int value)
Gets or sets a 32-bit signed integer that specifies the logical height of the source rectangle.
|
void |
setDestRect(Rectangle value)
Gets or sets the dest rect.
|
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_STRETCHBLT record.
|
void |
setSrcRect(Rectangle value)
Gets or sets the source rect.
|
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 |
setXformSrc(Matrix value)
Gets or sets an XForm object (section 2.2.28) that specifies a world-space to page-space transform to apply to the source bitmap.
|
void |
setXSrc(int value)
Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-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 logical y-coordinate of the upper-left
corner of the source rectangle.
|
public EmfStretchBlt(EmfRecord source)
Initializes a new instance of the EmfStretchBlt
class.
source
- The source.public EmfStretchBlt()
Initializes a new instance of the EmfStretchBlt
class.
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 getCxDest()
Gets or sets a 32-bit signed integer that specifies the logical width of the destination rectangle.
public void setCxDest(int value)
Gets or sets a 32-bit signed integer that specifies the logical width of the destination rectangle.
public int getCyDest()
Gets or sets a 32-bit signed integer that specifies the logical height of the destination rectangle.
public void setCyDest(int value)
Gets or sets a 32-bit signed integer that specifies the logical height of the destination rectangle.
public int getBitBltRasterOperation()
Gets or sets a 32-bit unsigned integer that specifies the raster operation code. This code defines 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
public void setBitBltRasterOperation(int value)
Gets or sets a 32-bit unsigned integer that specifies the raster operation code. This code defines 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
public int getXSrc()
Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the source rectangle.
public void setXSrc(int value)
Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the source rectangle.
public int getYSrc()
Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the source rectangle.
public void setYSrc(int value)
Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the source rectangle.
public Matrix getXformSrc()
Gets or sets an XForm object (section 2.2.28) that specifies a world-space to page-space transform to apply to the source bitmap.
public void setXformSrc(Matrix value)
Gets or sets an XForm object (section 2.2.28) that specifies a world-space to page-space transform to apply to the source bitmap.
public int getArgb32BkColorSrc()
Gets or sets a WMF ColorRef object ([MS-WMF] section 2.2.2.8 that specifies the background color of the source bitmap.
public void setArgb32BkColorSrc(int value)
Gets or sets a WMF ColorRef object ([MS-WMF] section 2.2.2.8 that specifies the background color of the source bitmap.
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 getCxSrc()
Gets or sets a 32-bit signed integer that specifies the logical width of the source rectangle.
public void setCxSrc(int value)
Gets or sets a 32-bit signed integer that specifies the logical width of the source rectangle.
public int getCySrc()
Gets or sets a 32-bit signed integer that specifies the logical height of the source rectangle.
public void setCySrc(int value)
Gets or sets a 32-bit signed integer that specifies the logical height of the source rectangle.
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_STRETCHBLT 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_STRETCHBLT record. Accordingly, fields in this buffer that are labeled "UndefinedSpace" are optional and MUST be ignored.
public Rectangle getSrcRect()
Gets or sets the source rect.
Value: The source rect.public void setSrcRect(Rectangle value)
Gets or sets the source rect.
Value: The source rect.public Rectangle getDestRect()
Gets or sets the dest rect.
Value: The dest rect.public void setDestRect(Rectangle value)
Gets or sets the dest rect.
Value: The dest rect.