| Reply | « Previous Thread | Next Thread » |
|
Hi,
I am trying to take a snapshot of my canvas (not from the camera). Do you know how can I do this? Thank you Rafael Barbosa |
|
I gues you extended Canvas and implemented the paint() method?
You can add a method to your class which calls the paint() method and passes it a Graphics reference from an Image. See code below: Code:
public Image getScreenShot() {
Image screenshot = Image.createImage(getWidth(), getHeight());
Graphics g = screenshot.getGraphics();
paint(g);
return Image.createImage(screenshot);
}
|
|
Ok, thank you so much. I have another question. I am trying to serialize an Object3D like a Node or a VertexBuffer (m3g - jsr 184). Do you know how can I do this?
Thank you again. Rafael Barbosa |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|