How to draw into an Image (Image Buffer) ?

I am a J2ME programmer, And I use the code lines below to create a Image Buffer.

public void paint(Graphics g) {

Image image = Image.createImage(width, height); // creating a mutable Image (Image Buffer)
Graphics imageGraphics = image.getGraphics();
imageGraphics.fillRect(0, 0, width, height); // Draw a rect into the Image buffer
imageGraphics.drawString(“Image Graphics”, width/2, 0,0); // Draw a Text into the Image Buffer
g.drawImage(image, 0, 0, Graphics.TOP | Graphics.LEFT); // Draw Image Buffer on device
}
How can I do the same with Corona, plz ?

Thanks [import]uid: 30062 topic_id: 6818 reply_id: 306818[/import]

Create a group, then add display objects to the group. Then treat it as a single object. There’s no explicit draw call or paint callback. All objects with visible set to true will draw on each frame loop.

To read it as a pixel buffer is a bit more work. Save the group display object then load as a spritesheet with cell size as small as you require. [import]uid: 3953 topic_id: 6818 reply_id: 24086[/import]

Just more a small question, Corona will repaint all objects of display group, or just repaint last-inserted object ?
Thanks [import]uid: 30062 topic_id: 6818 reply_id: 24359[/import]