public final class EmfPlgBlt extends EmfBitmapRecordType
The EMR_PLGBLT record specifies a block transfer of pixels from a source bitmap to a destination parallelogram, with the application of a color mask bitmap.
Constructor and Description |
---|
EmfPlgBlt(EmfRecord source)
Initializes a new instance of the
EmfPlgBlt class. |
Modifier and Type | Method and Description |
---|---|
Point[] |
getAptlDest()
Gets or sets an array of three WMF PointL objects ([MS-WMF] section 2.2.2.15) that
specifies three corners a parallelogram destination area for the block transfer.
|
int |
getBkSrcArgb32Color()
Gets or sets a WMF ColorRef object ([MS-WMF] section 2.2.2.8) that specifies the
background color of the source bitmap.
|
Rectangle |
getBounds()
Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that defines the
bounding rectangle, in device units, for output to the destination.
|
int |
getCxSrc()
Gets or sets a 32-bit signed integer that specifies the logical width of the source rectangle.
|
int |
getCySrc()
Gets or sets a 32-bit signed integer that specifies the logical height of the source rectangle.
|
WmfDeviceIndependentBitmap |
getMaskBitmap()
Gets or sets a buffer containing the mask bitmap, which are not
required to be contiguous with the fixed portion of the EMR_PLGBLT record or with each other.
|
WmfDeviceIndependentBitmap |
getSourceBitmap()
Gets or sets a buffer containing the source bitmap, which are not
required to be contiguous with the fixed portion of the EMR_PLGBLT record or with each other.
|
int |
getUsageMask()
Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the
color table in the mask bitmap header.
|
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.
|
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 |
getXMask()
Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the mask 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 |
getYMask()
Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the mask bitmap.
|
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 |
setAptlDest(Point[] value)
Gets or sets an array of three WMF PointL objects ([MS-WMF] section 2.2.2.15) that
specifies three corners a parallelogram destination area for the block transfer.
|
void |
setBkSrcArgb32Color(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 |
setBounds(Rectangle value)
Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that defines the
bounding rectangle, in device units, for output to the destination.
|
void |
setCxSrc(int value)
Gets or sets a 32-bit signed integer that specifies the logical width of the source rectangle.
|
void |
setCySrc(int value)
Gets or sets a 32-bit signed integer that specifies the logical height of the source rectangle.
|
void |
setMaskBitmap(WmfDeviceIndependentBitmap value)
Gets or sets a buffer containing the mask bitmap, which are not
required to be contiguous with the fixed portion of the EMR_PLGBLT record or with each other.
|
void |
setSourceBitmap(WmfDeviceIndependentBitmap value)
Gets or sets a buffer containing the source bitmap, which are not
required to be contiguous with the fixed portion of the EMR_PLGBLT record or with each other.
|
void |
setUsageMask(int value)
Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the
color table in the mask bitmap header.
|
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 |
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 |
setXMask(int value)
Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the mask 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 |
setYMask(int value)
Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the mask bitmap.
|
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 EmfPlgBlt(EmfRecord source)
Initializes a new instance of the EmfPlgBlt
class.
source
- The source.public Rectangle getBounds()
Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that defines the bounding rectangle, in device units, for output to the destination.
public void setBounds(Rectangle value)
Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that defines the bounding rectangle, in device units, for output to the destination.
public Point[] getAptlDest()
Gets or sets an array of three WMF PointL objects ([MS-WMF] section 2.2.2.15) that specifies three corners a parallelogram destination area for the block transfer. The upper-left corner of the source rectangle is mapped to the first point in this array, the upper-right corner to the second point, and the lower-left corner to the third point. The lower-right corner of the source rectangle is mapped to the implicit fourth point in the parallelogram, which is computed from the first three points (A, B, and C) by treating them as vectors. D = B + C A
public void setAptlDest(Point[] value)
Gets or sets an array of three WMF PointL objects ([MS-WMF] section 2.2.2.15) that specifies three corners a parallelogram destination area for the block transfer. The upper-left corner of the source rectangle is mapped to the first point in this array, the upper-right corner to the second point, and the lower-left corner to the third point. The lower-right corner of the source rectangle is mapped to the implicit fourth point in the parallelogram, which is computed from the first three points (A, B, and C) by treating them as vectors. D = B + C A
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 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 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 getBkSrcArgb32Color()
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 setBkSrcArgb32Color(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
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
public int getXMask()
Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the mask bitmap.
public void setXMask(int value)
Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the mask bitmap.
public int getYMask()
Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the mask bitmap.
public void setYMask(int value)
Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the mask bitmap.
public int getUsageMask()
Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the color table in the mask bitmap header. This value MUST be in the DIBColors enumeration.
public void setUsageMask(int value)
Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the color table in the mask bitmap header. This value MUST be in the DIBColors enumeration.
public WmfDeviceIndependentBitmap getSourceBitmap()
Gets or sets a buffer containing the source bitmap, which are not required to be contiguous with the fixed portion of the EMR_PLGBLT record or with each other. 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 are not required to be contiguous with the fixed portion of the EMR_PLGBLT record or with each other. Accordingly, fields in this buffer that are labeled "UndefinedSpace" are optional and MUST be ignored.
public WmfDeviceIndependentBitmap getMaskBitmap()
Gets or sets a buffer containing the mask bitmap, which are not required to be contiguous with the fixed portion of the EMR_PLGBLT record or with each other. Accordingly, fields in this buffer that are labeled "UndefinedSpace" are optional and MUST be ignored.
public void setMaskBitmap(WmfDeviceIndependentBitmap value)
Gets or sets a buffer containing the mask bitmap, which are not required to be contiguous with the fixed portion of the EMR_PLGBLT record or with each other. Accordingly, fields in this buffer that are labeled "UndefinedSpace" are optional and MUST be ignored.