[Visual Basic] [ Boolean
= ]imagekitcontrolname.BitBlt(hDCDst As LONG_PTR,
XDst As Long, YDst As Long, Width As Long, Height As Long, hDCSrc
As LONG_PTR, XSrc As Long, YSrc As Long, dwRop As Long)
[Visual C++] [
BOOL = ]imagekitcontrolname.BitBlt(LONG_PTR
hDCDst, long XDst, long YDst, long Width, long Height, LONG_PTR
hDCSrc, long XSrc, long YSrc, long dwRop)
[VB.NET] [ Boolean =
]imagekitcontrolname.BitBlt(hDCDst As Integer(x86) or
Long(x64), XDst As Integer, YDst As Integer, Width As Integer,
Height As Integer, hDCSrc As Integer(x86) or Long(x64), XSrc As
Integer, YSrc As Integer, dwRop As Integer)
[C#.NET] [ bool =
]imagekitcontrolname.BitBlt(int(x86) or (x64) hDCDst,
int XDst, int YDst, int Width, int Height, int(x86) or (x64)
hDCSrc, int XSrc, int YSrc, int dwRop)
(x86) refers to the 32bit version, (x64) refers to the 64bit version.
Parameters
Name | Explanation |
---|---|
hDCDst | handle to destination device context |
XDst | x-coordinate of destination upper-left corner (in pixels) |
YDst | y-coordinate of destination upper-left corner (in pixels) |
Width | width of destination rectangle (in pixels) |
Height | height of destination rectangle (in pixels) |
hDCSrc | handle to source device context |
XSrc | x-coordinate of source upper-left corner (in pixels) |
YSrc | y-coordinate of source upper-left corner (in pixels) |
dwRop | raster operation code |
Return Value
Returns True (nonzero) if successful, otherwise returns False (0).
Explanation
The following list shows the raster operation codes.
Value | Explanation |
---|---|
0x00000042 | Fills the destination rectangle using the color associated with index 0 in the physical palette. (This color is black for the default physical palette.)(BLACKNESS) |
0x00550009 | Inverts the destination rectangle.(DSTINVERT) |
0x00C000CA | Merges the colors of the source rectangle with the brush currently selected in hdcDest, by using the Boolean AND operator.(MERGECOPY) |
0x00BB0226 | Merges the colors of the inverted source rectangle with the colors of the destination rectangle by using the Boolean OR operator.(MERGEPAINT) |
0x00330008 | Copies the inverted source rectangle to the destination.(NOTSRCCOPY) |
0x001100A6 | Combines the colors of the source and destination rectangles by using the Boolean OR operator and then inverts the resultant color.(NOTSRCERASE) |
0x00F00021 | Copies the brush currently selected in hdcDest, into the destination bitmap.(PATCOPY) |
0x005A0049 | Combines the colors of the brush currently selected in hdcDest, with the colors of the destination rectangle by using the Boolean XOR operator.(PATINVERT) |
0x00FB0A09 | Combines the colors of the brush currently selected in hdcDest, with the colors of the inverted source rectangle by using the Boolean OR operator. The result of this operation is combined with the colors of the destination rectangle by using the Boolean OR operator.(PATPAINT) |
0x008800C6 | Combines the colors of the source and destination rectangles by using the Boolean AND operator.(SRCAND) |
0x00CC0020 | Copies the source rectangle directly to the destination rectangle.(SRCCOPY) |
0x00440328 | Combines the inverted colors of the destination rectangle with the colors of the source rectangle by using the Boolean AND operator.(SRCERASE) |
0x00660046 | Combines the colors of the source and destination rectangles by using the Boolean XOR operator.(SRCINVERT) |
0x00EE0086 | Combines the colors of the source and destination rectangles by using the Boolean OR operator.(SRCPAINT) |
0x00FF0062 | Fills the destination rectangle using the color associated with index 1 in the physical palette. (This color is white for the default physical palette.)(WHITENESS) |
Ordinarily, the value 0x00CC0020(SRCCOPY) is used.
When using hexidecimals in Visual Basic (including .NET) change the 0x notation to &H
The terms within the parentheses () refer to the Windows API operation.
Differences from ImageKit7/8
The hDCDst and hDCSrc arguments and return values have changed