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 );
Comments