Navigation:  ThinBASIC Modules > UI (User Interface) > Windows API >

Win_StretchBlt

Previous pageReturn to chapter overviewNext page

 

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