|
|
User login
Feeds |
Maskedbitmap not working in BouncingBall DSA Sample?
|
|||||
| Mon, 2003-09-22 20:00 | |
|
When I update the Direct Screen Access sample to display a 'masked' bouncing ball with iGc->BitBltMasked(iPosition, iBallImage, bmpPieceRect, iBallImageMask, EFalse); ..instead of the default iGc->BitBlt(iPosition, iBallImage); ..it doesn't render anything. The sample goes as far as loading the masked bitmap and presents it as a member of CDDBouncingBallEngine, but never actually used the mask. (I wonder if this was deliberate?, could somebody verify this?.) Is there an issue with bitmap masks in DSA mode? Is there another/new way of achieving it? cheers, paris. ~~~~ |
|
Forum posts: 2025
I am using successfully the same kind of code (but not the Bouncing Ball example).
Are you sure that "bmpPieceRect" and iMask are correctly defined ?
(you can try with ETrue instead of EFalse to invert the mask).
Eric
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 175
Nice one Eric!!
I changed EFalse to True and it worked.
cheers,
paris.
~~~~