Is there a way to save a Graphics object in Codename One without without taking a screenshot?
问题 The question is in the title. For example how can I save g in a file in the following snippet ? public void paints(Graphics g, Image background, Image watermark, int width, int height) { g.drawImage(background, 0, 0); g.drawImage(watermark, 0, 0); g.setColor(0xFF0000); // Upper left corner g.fillRect(0, 0, 10, 10); // Lower right corner g.setColor(0x00FF00); g.fillRect(width - 10, height - 10, 10, 10); g.setColor(0xFF0000); Font f = Font.createTrueTypeFont("Geometos", "Geometos.ttf").derive