2009년 7월 28일 화요일

CDC 배경 삭제 이미지

 

dc 의 특정 색을 배경으로 삭제하고 사용 할 때

 

/// CRect rect  : DC rect

/// barSize : memDC. Size

/// COLOREEF : rgbBKColor (RGB 0, 0, 0) 배경 색상

 

 

pDC->TransparentBlt(rect.left, rect.top, rect.width(), rect.hight(), &memDC, 0, 0, barSize.cx, barSize.cy, rgbBKColor);

댓글 없음:

댓글 쓰기