Hello
I have following problem with drawing string with white color on offscreen Image. for example
private static class CanvasImpl extends Canvas {
Image offscreen;
public void paint(Graphics g1) {
if (offscreen == null)
offscreen = DirectUtils.createImage(getWidth(), getHeight(), 0);
Graphics g = offscreen.getGraphics();
g.setColor(0);
g.fillRect(0,0, getWidth(), getHeight());
g.setColor(255,255,255);
g.drawString("Test string", 10, 10, Graphics.TOP | Graphics.LEFT);
g1.drawImage(offscreen, 0,0, Graphics.TOP | Graphics.LEFT);
}
}
The result is black rectanglar and no white text on it. This problem occurs only in real Nokia 3650 phone. All emulators and even Nokia 7650 work properly
Thanks in advance
Alexander Godin

Reply With Quote

