2013년 4월 21일 일요일

Bitmap Reference > Bitmap Functions > BitBlt


The BitBlt function performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source device context into a destination device context.

BOOL BitBlt(
  _In_  HDC hdcDest,
  _In_  int nXDest,
  _In_  int nYDest,
  _In_  int nWidth,
  _In_  int nHeight,
  _In_  HDC hdcSrc,
  _In_  int nXSrc,
  _In_  int nYSrc,
  _In_  DWORD dwRop
);

Parameters

hdcDest [in]
A handle to the destination device context.
nXDest [in]
The x-coordinate, in logical units, of the upper-left corner of the destination rectangle.
윈도우에서의 이미지의 x좌표
nYDest [in]
The y-coordinate, in logical units, of the upper-left corner of the destination rectangle.
윈도우에서의 이미지의 y좌표
nWidth [in]
The width, in logical units, of the source and destination rectangles.
nXSrc로 부터 nWidth만큼
nHeight [in]
The height, in logical units, of the source and the destination rectangles.
nYSrc로 부터 nHeight만큼
hdcSrc [in]
A handle to the source device context.
nXSrc [in]
The x-coordinate, in logical units, of the upper-left corner of the source rectangle.
이미지 (0,0)을 기준으로 x좌료
nYSrc [in]
The y-coordinate, in logical units, of the upper-left corner of the source rectangle.
이미지 (0,0)을 기준으로 y좌표
dwRop [in]
A raster-operation code. These codes define how the color data for the source rectangle is to be combined with the color data for the destination rectangle to achieve the final color.
The following list shows some common raster operation codes.


http://msdn.microsoft.com/en-us/library/windows/desktop/dd183370(v=vs.85).aspx


댓글 없음:

댓글 쓰기