You Are Here:

Community: Developer Discussion Boards

#1 Old DirectGraphics...setARGBCol or(int argbColor) - 2002-10-08, 09:10

Join Date: Mar 2003
Posts: 17
HomerJ
Offline
Registered User
Using the DirectGraphics object, I am trying to use the method setARGBColor to set the paint colour to white... does anyone know what value should i use for the int (argbColor)

Thanks
HJ
Reply With Quote

#2 Old RE: DirectGraphics...setARGBC ol or(int argbColor) - 2002-10-10, 12:19

Join Date: Mar 2003
Posts: 231
Location: UK
LongSteve
Offline
Regular Contributor
Hi,

There are various things to try, and you'll get different results depending upon if you're using the Series 60 emulator, Series 40 emulator, Series 30 emulator, a real 7650, 7210 or some other device.

I've not yet gotten around to fully testing out what works in which devices, but here are things I've tried.

0xAARRGGBB format,so white is 0xFFFFFFFF (should work in 7650,7210,series 40 emulator and series 30 devices).

0x(-AA)RRGGBB format. Odd one this, on the 7650 emulator (Betas 0.1), the alpha component is inverted on some of the APIS, so white is 0x00FFFFFF.

You could also try 0x0000ARGB in either form, so 0x0000FFFF or 0x00000FFF.

It seems to differ also if using Graphics.setColor, DirectGraphics.setARGBColor, or the short ARGB format for the pixels in the short arrays returned by getPixels.

Hope this helps,

Steve
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