[Visual Basic] [ Boolean
= ]imagekitcontrolname.StretchBlt (hDCDst As
Long, XDst As Long, YDst As Long, WidthDst As Long, HeightDst As
Long, hDCSrc As Long, XSrc As Long, YSrc As Long, WidthSrc As Long,
HeightSrc As Long, dwRop As Long)
[Visual C++] [
BOOL = ]imagekitcontrolname.StretchBlt(long
hDCDst, long XDst, long YDst, long WidthDst, long HeightDst, long
hDCSrc, long XSrc, long YSrc, long WidthSrc, long HeightSrc, long
dwRop)
Parameters
Name | Explanation |
---|---|
hDCDst | handle to destination DC |
XDst | x-coord of destination upper-left corner |
YDst | y-coord of destination upper-left corner |
WidthDst | width of destination rectangle |
HeightDst | height of destination rectangle |
hDCSrc | handle to source DC |
XSrc | x-coord of source upper-left corner |
YSrc | y-coord of source upper-left corner |
WidthSrc | width of source rectangle |
HeightSrc | height of source rectangle |
dwRop | raster operation code |
Return Value
Returns True (nonzero) if successful, otherwise returns False (0).
Explanation
The StretchBlt method copies a bitmap from a source
rectangle into a destination rectangle, stretching or compressing
the bitmap to fit the dimensions of the destination rectangle, if
necessary.
The StretchBlt methodcreates a mirror image of a bitmap if
the signs of the WidthSrc and WidthDest parameters or if
the HeightSrc and HeightDest parameters differ. If
WidthSrc and WidthDest have different signs, the function creates a
mirror image of the bitmap along the x-axis. If HeightSrc and
HeightDest have different signs, the function creates a mirror
image of the bitmap along the y-axis.
Value | Explanation |
---|---|
&H00000042 | 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) |
&H00550009 | Inverts the destination rectangle.(DSTINVERT) |
&H00C000CA | Merges the colors of the source rectangle with the brush currently selected in hdcDest, by using the Boolean AND operator.(MERGECOPY) |
&H00BB0226 | Merges the colors of the inverted source rectangle with the colors of the destination rectangle by using the Boolean OR operator.(MERGEPAINT) |
&H00330008 | Copies the inverted source rectangle to the destination.(NOTSRCCOPY) |
&H001100A6 | Combines the colors of the source and destination rectangles by using the Boolean OR operator and then inverts the resultant color.(NOTSRCERASE) |
&H00F00021 | Copies the brush currently selected in hdcDest, into the destination bitmap.(PATCOPY) |
&H005A0049 | Combines the colors of the brush currently selected in hdcDest, with the colors of the destination rectangle by using the Boolean XOR operator.(PATINVERT) |
&H00FB0A09 | 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) |
&H008800C6 | Combines the colors of the source and destination rectangles by using the Boolean AND operator.(SRCAND) |
&H00CC0020 | Copies the source rectangle directly to the destination rectangle.(SRCCOPY) |
&H00440328 | Combines the inverted colors of the destination rectangle with the colors of the source rectangle by using the Boolean AND operator.(SRCERASE) |
&H00660046 | Combines the colors of the source and destination rectangles by using the Boolean XOR operator.(SRCINVERT) |
&H00EE0086 | Combines the colors of the source and destination rectangles by using the Boolean OR operator.(SRCPAINT) |
&H00FF0062 | 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) |
The terms within the parentheses () refer to the Windows API operation.