Read pixels that have been painted on a Canvas?



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


.



Relevant Pages

  • How to change the size of the canvas?
    ... I have an image that is basically the canvas that the user draws on. ... He may also be making changes to the Graphics object that is used to draw on ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: How to save a Graphics Object to an Image File in VB.Net
    ... display device. ... It is like asking how one can save a canvas as a painting. ... How can i save this Graphics Object to JPG / GIF / BMP or other ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Make a new graphics object have all the properties of the old graphics object
    ... I have an image that is basically the canvas that the user draws on. ... He may also be making changes to the Graphics object that is used to draw on ... graphics object (like PageUnit and InterpolationMode...) ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Calling an MVP
    ... My present size of the white canvas in the paint window is: Width: 5.07' ... different numbers be it in pixels or inches or centimeters.. ... You should also bookmark this Web page for more resources on dealing ...
    (microsoft.public.windowsxp.general)
  • I need some help! Thanks! DELPHI
    ... I made component that needs to draw pixels and to get pixels from inherited ... Canvas from parent form. ... It looks like GetImage has taken Image from some other place ...
    (borland.public.delphi.language.objectpascal)