U E D R , A S I H C RSS

레밍즈프로젝트/프로토타입/마스크이미지

SeeAlso) , 트/, MFC, (zeropage)bitblt

LoadBitMap

~cpp
	void DrawBitMap(UINT ITEM, int x, int y, UINT rop=SRCCOPY){ 
		//bitmap Load 
		CBitmap newBitmap, *oldBitmap; 
		CDC BitMapDC; 
		BitMapDC.CreateCompatibleDC(this->getMemDC()); 
		newBitmap.LoadBitmap(ITEM); 
		oldBitmap = (CBitmap*)BitMapDC.SelectObject(&newBitmap); 

		//   
		BITMAP bitmapInfo; 
		newBitmap.GetBitmap(&bitmapInfo); 

		//draw 
		m_pMemDC->BitBlt(x, y, bitmapInfo.bmWidth, bitmapInfo.bmHeight, &BitMapDC, 0, 0, rop); 

		//회 
		BitMapDC.SelectObject(oldBitmap);
	}

MASK BITMAP

~cpp
	void DrawMaskBitMap(UINT MASKITEM, UINT IMGITEM, int x, int y){
		this->DrawBitMap(MASKITEM, x, y, SRCAND);
		this->DrawBitMap(IMGITEM, x, y, SRCPAINT);
		return;
	}

.
, 포토ㅤㅅㅑㅍ .
형태 , 한 . 형태 .
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:22
Processing time 0.0087 sec