You Are Here:

Community: Developer Discussion Boards

#1 Old 7650 and Alpha channel - 1970-01-01, 02:00

Join Date: Mar 2003
Posts: 1
krik
Offline
Registered User
Hi

I'm currently trying to use Nokia API.
I want to use DirectGraphic in a full canvas and use alpha channel. My current Native pixel format is 4444 (on both emulator and true 7650).
I first get problems using setARGBColor since the channel value was -1 when i used getAlphaComponent(). Then, i understood that the argument of this method should be in the native pixel format.

Now, i try code like this :

dgg.setARGBColor(0x0FFF);
dgg.fillTriangle(0,0,0,50,50,0,0x0FFF);
gg.fillRect(0,80,20,20);
dgg.setARGBColor(0x000A);
dgg.fillTriangle(0,0,0,40,40,0,0x000A);
gg.fillRect(20,80,20,20);
dgg.setARGBColor(0x000A);
dgg.fillTriangle(0,0,0,30,30,0,0x500A);
gg.fillRect(40,80,20,20);
dgg.setARGBColor(0xF00A);
dgg.fillTriangle(0,0,0,10,10,0,0xF00A);
gg.fillRect(80,80,20,20);

(gg is my Gprahics object and dgg is the DirectGraphic built from gg)

I get non-transparent Blue (or white for the first case) for both triangles and squares on emulator (I use Nokia Serie 60 Midp sdk Beta 1)
And on Real 7650, I get no triangles at all, and blue black and green squares.

Thx for your help.
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