Maskedbitmap not working in BouncingBall DSA Sample?

Login to reply to this topic.
Mon, 2003-09-22 20:00
Joined: 2003-09-15
Forum posts: 175
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.

~~~~


Mon, 2003-09-22 20:22
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 2025
Maskedbitmap not working in BouncingBall DSA Sample?
This should work fine.

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

Mon, 2003-09-22 20:51
Joined: 2003-09-15
Forum posts: 175
Maskedbitmap not working in BouncingBall DSA Sample?
>(you can try with ETrue instead of EFalse to invert the mask).

Nice one Eric!!  
I changed EFalse to True and it worked.

cheers,

paris.
Wink

~~~~

  • Login to reply to this topic.