| Reply | « Previous Thread | Next Thread » |
|
Hi, i have the same problem with u on version 4.30 traditional chinese platform.
When i type *#0000# the following text is shown v4.30 23-09-02 NHL-2NA Are there any solutions? Thanks a lot. |
|
Hi all:
I got a problem when setting colors for drawing stringsinstring via off-line graphics, which is low-level UI, like this: " protected void paint(Graphics g) { ... // get the double-buffer off-line screen offImg = DirectUtils.createImage(getWidth(), getHeight(), 0x00000000); offG = offImg.getGraphics(); // set color as White offG.setColor(255, 255, 255); scoreStr = "Your score is perfect."; offG.drawString(scoreStr, getWidth() / 2, getHeight() / 2, Graphics.HCENTER | Graphics.BOTTOM); // flush off-line screen to on-line screen g.drawImage(offImg,0,0,Graphics.TOP|Graphics.LEFT); ... } " On the emulator, which is included in Nokia series 60 MIDP SDK, this code runs as I wish and the string is drewn in the color as I setted. But, when run on real 7650, the color of string is always Black, whichever color I changed in code. Can somebody tell me what's wrong with color setting for string drawing in real 7650 ? Thanks. |
|
Hello,
I tried it on Nokia 7650 with version 3.12 sw. It works as it should. What is your sw version (type *#0000# to get it)? Please find below my code snippet: public void paint(Graphics g) { Image offImg = DirectUtils.createImage(getWidth(), getHeight(), 0x00FF0000); Graphics offG = offImg.getGraphics(); // set color as White offG.setColor(255, 255, 255); String scoreStr = "Your score is perfect."; offG.drawString(scoreStr, getWidth() / 2, getHeight() / 2, Graphics.HCENTER | Graphics.BOTTOM); g.drawImage(offImg,0,0,Graphics.TOP|Graphics.LEFT); Regards, Petteri / Forum Nokia |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|