Read pixels that have been painted on a Canvas?
- From: "Cameron Fitzhugh" <spam@xxxxxxxx>
- Date: Sun, 29 Oct 2006 18:22:55 -0600
I've been painting on a Canvas using the Graphics object returned by
getGraphics(). I would like to save an area on the Canvas and later write
it back to the Canvas. I've been looking for some way to create a
BufferedImage using the pixels from a Graphics object, but no luck.
How do I obtain the pixels from an area on a Canvas?
Thanks,
Cameron
.
- Follow-Ups:
- Re: Read pixels that have been painted on a Canvas?
- From: Knute Johnson
- Re: Read pixels that have been painted on a Canvas?
- Prev by Date: Bridge for Java swing <-> Html/Javascript
- Next by Date: Re: Minimizing a JFrame releases memory? Why?
- Previous by thread: Bridge for Java swing <-> Html/Javascript
- Next by thread: Re: Read pixels that have been painted on a Canvas?
- Index(es):
Relevant Pages
|