StretchBlt()関数


BOOL StretchBlt(
 HDC hdcDest,
 int nXOriginDest,
 int nYOriginDest,
 int nWidthDest,
 int nHeightDest,
 HDC hdcSrc,
 int nXOriginSrc,
 int nYOriginSrc,
 int nWidthSrc,
 int nHeightSrc,
 DWORD dwRop
);


ビットマップを転送元四角形から転送先四角形にコピーします。
このとき、必要に応じて、転送先四角形の寸法に合うように、ビットマップを拡大、縮小します。

hdcSrc転送先デバイスコンテキストへのハンドル。
xDest転送先四角形の左上隅のx座標。
yDest転送先四角形の左上隅のy座標。
nDestWidth転送先四角形の幅。
nDestHeight転送先四角形の高さ。
hdcSrc転送元デバイスコンテキストへのハンドル。
xSrc転送元四角形のx座標。
ySrc転送元四角形のy座標。
nSrcWidth転送元四角形の幅。
nSrcHeight転送元四角形の高さ。
dwRop実行するラスタ オペレーション。



StretchBlt( hdc, 50, 0, 250, 200, hdc, 0, 0, 32, 32, SRCCOPY );
StretchBlt( hdc, 50, 0, -250, -200, hdc, 0, 0, 32, 32, SRCCOPY );

Windows > グラフィック | comments (0) | trackbacks (0)

Comments

Comment Form

icons:

Trackbacks