Symbian CFbsMapd 图片开发
2010-03-24 17:22:00 来源:WEB开发网核心提示:backgroundGc2Mask->SetBrushStyle(CGraphicsContext::ENullBrush);backgroundGc2->DrawBitmap(rect2, iGulIcon->Bitmap());backgroundGc2Mask->DrawBitmap(re
backgroundGc2Mask->SetBrushStyle(CGraphicsContext::ENullBrush);
backgroundGc2->DrawBitmap(rect2, iGulIcon->Bitmap());
backgroundGc2Mask->DrawBitmap(rect2, iGulIcon->Mask());
delete backgroundGc2;
delete backgroundDevice2;
delete backgroundGc2Mask;
delete backgroundDevice2Mask;
Draw()方法中如下调用:
gc.BitBlt(TPoint(100, 0), iBackGround2);
gc.BitBltMasked(TPoint(150, 0), iBackGround2, TRect(iBackGround2->SizeInPixels()), iBackGround2Mask, EFalse);
更多精彩
赞助商链接