This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
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 system stretches or compresses the bitmap according to the stretching mode currently set in the destination device context.
Syntax
n = Win_StretchBlt(hdcDest, xDest, yDest, wDest, hDest, hdcSrc, xSrc, ySrc, wSrc, hSrc, dwRop)
Returns
Number.
Parameters
Name |
Type |
Optional |
Meaning |
hdcDest |
Number |
No |
A handle to the destination device context. |
xDest |
Number |
No |
The x-coordinate, in logical units, of the upper-left corner of the destination rectangle. |
yDest |
Number |
No |
The y-coordinate, in logical units, of the upper-left corner of the destination rectangle. |
wDest |
Number |
No |
The width, in logical units, of the destination rectangle. |
hDest |
Number |
No |
The height, in logical units, of the destination rectangle. |
hdcSrc |
A handle to the source device context. |
||
xSrc |
Number |
No |
The x-coordinate, in logical units, of the upper-left corner of the source rectangle. |
ySrc |
Number |
No |
The y-coordinate, in logical units, of the upper-left corner of the source rectangle. |
wSrc |
Number |
No |
The width, in logical units, of the source rectangle. |
hSrc |
Number |
No |
The height, in logical units, of the source rectangle. |
dwRop |
Number |
No |
The raster operation to be performed. Raster operation codes define how the system combines colors in output operations that involve a brush, a source bitmap, and a destination bitmap. |
Remarks
For additional info, please refer to MS documentation at: https://docs.microsoft.com/en-us/windows/desktop/api/wingdi/nf-wingdi-stretchblt
Restrictions
See also
Examples