| Reply | « Previous Thread | Next Thread » |
|
I use g.setColor(0x00FFFFFF) to drawString() the text in FullCanvas.
It workes well in old j2me version. But problem in new version, the text is still black. Actually the color is always black, useless of the setColor(). What's the matter? Thanks for help. the codes are like this: Font textFont = Font.getFont(0,Font.STYLE_BOLD,Font.SIZE_SMALL); offscrg.setFont(txtFont); offscrg.setColor(0x00000000); offscrg.drawString(); offscrg.setColor(0x00FFFFFF); offscrg.drawString(); g.drawImage(offscrimg,getWidth()/2,getHeight()/2,Graphics.VCENTER|Graphics.HCENTER); The version currently in 7650 is v4.39 30-10-02. (I am sorry for my mistake information before.) |
|
Hi,
Sorry, I have only just read this post. I had the same problem with FW 4.69 on the 7650. It happened only when I used setColor() on the graphics context of an Image object. When setting the color of a Canvas objects graphical context, the text was coloured correctly. My way around the problem was to render the Image as normal but any text that was required was rendered over the top after drawing the image - using setColor() and drawString() of the canvases context. Hope that helps, Paul Keast |
|
Thanks Paul. I don't know if you helped XRSU, but it certainly helps me.....I'm having the same issue with the NGage - the colours are fine in all the emus, but on hardware I get nothing but black. Your explanation adds up to code changes prior to losing colour. Just about to test it now..............
|
| CharlieSkinner |
| View Public Profile |
| Find all posts by CharlieSkinner |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|