You Are Here:

Community: Developer Discussion Boards

#1 Old Alpha blending using Directgraphics.setARGBColor - 2004-11-04, 09:03

Join Date: Feb 2004
Posts: 27
dd_plus
Offline
Registered User
Ahh - I think Ive found another bug in 6600...

Ive managed to use the DirectGraphics methods to paste ARGB png bitmaps (both on the phone and on the emulator).
BUT - I wanna use it the way it was ment to be used - make a native Graphics object use ARGB values.
It works fine on the emulator (s60 midp concept 0.3.1b) but doesnt work on the phone itself:

DirectGraphics dg = DirectUtils.getDirectGraphics(g);
dg.setARGBColor(0x6600FF00);
g.fillRect(0,0,60,60);

Draws a transparent rectangle on the emulator but a regular one of the phone, even though the phone's Display.numAlpaLevels() returns 256 (meaning 256 alpha levels!) and the emulator's method returns 0.

Any way around this?

{DD+}
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia