| Reply | « Previous Thread | Next Thread » |
|
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 |
|
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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|