Re: Read pixels that have been painted on a Canvas?
- From: Knute Johnson <nospam@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 29 Oct 2006 18:27:56 -0800
Cameron Fitzhugh wrote:
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
Draw them on the BufferedImage first, then draw the BufferedImage onto the Canvas.
--
Knute Johnson
email s/nospam/knute/
.
- Follow-Ups:
- Re: Read pixels that have been painted on a Canvas?
- From: Josh Falter
- Re: Read pixels that have been painted on a Canvas?
- References:
- Read pixels that have been painted on a Canvas?
- From: Cameron Fitzhugh
- Read pixels that have been painted on a Canvas?
- Prev by Date: Re: No keyboard into in JApplet
- Next by Date: Re: No keyboard into in JApplet
- Previous by thread: Read pixels that have been painted on a Canvas?
- Next by thread: Re: Read pixels that have been painted on a Canvas?
- Index(es):
Relevant Pages
|
|