TransparentBlt 함수는
BOOL TransparentBlt(
HDC
intnXOriginDest, // x-coord of destination upper-left corner
intnYOriginDest, // y-coord of destination upper-left corner
intnWidthDest, // width of destination rectangle
inthHeightDest, // height of destination rectangle
HDChdcSrc, // handle to source DC
intnXOriginSrc, // x-coord of source upper-left corner
intnYOriginSrc, // y-coord of source upper-left corner
intnWidthSrc, // width of source rectangle <= 1
intnHeightSrc, // height of source rectangle <= 2
UINTcrTransparent // color to make transparent
);
1(소스의 가로) 과 2(소스의 세로) 는 소스의 원래 값보다 작아야 한다 .
즉, 1 과 2는 소스 DC가 소스비트맵을 선택하고 있을경우 소스 비트맵의 가로와
세로길이보다 커서는 안된다 . (크면 출력 안됨)
그런데 StretchBlt 함수의 1과 2는 소스 비트맵의 가로와 세로길이보다
커도 출력잘된다.