다음을 통해 공유


AfxGetDitheredBitmap

Copies a bitmap, replacing its background with a dithered (checker) pattern.

void AFXAPI AfxGetDitheredBitmap( 
   const CBitmap &rSrc, 
   CBitmap *pDest, 
   COLORREF cr1, 
   COLORREF cr2 
);

매개 변수

  • rSrc
    The source bitmap.

  • pDest
    The destination bitmap.

  • cr1
    One of the two dither colors, typically white.

  • cr2
    The other dither color, typically light gray (COLOR_MENU).

설명

The source bitmap is copied to the destination bitmap with a two-color (cr1 and cr2) checkered pattern replacing the source bitmap's background. The background of the source bitmap is defined as its white pixels and all pixels matching the color of the pixel in the upper-left corner of the bitmap.

디더링된 아이콘 버전 및 기존 아이콘 버전 비교

예제

CBitmap bm;
bm.LoadBitmap(IDB_BITMAP1);
CBitmap bmDith;
AfxGetDitheredBitmap(bm, &bmDith, RGB(255,255,255),
   GetSysColor(COLOR_BTNFACE));

요구 사항

헤더: afxwin.h

참고 항목

참조

AfxDrawDitheredBitmap

AfxGetGrayBitmap

개념

MFC 매크로 및 전역

기타 리소스

회색 및 디더링된 비트맵 함수