How to draw partial image on canvas ?
1 posts in topic
Flat View  Flat View

Posted By:   Timir_Panchal
Posted On:   Tuesday, September 11, 2001 11:01 PM

I have a canvas and there is already an image drawn on canvas. Now i have a new Image which is covers partial area of canvas. I wan to darw that partial area by the new image on the canvas without painting the whole canvas. How can i do it ?

Re: How to draw partial image on canvas ?

Posted By:   Ian_Mechura  
Posted On:   Friday, September 28, 2001 03:23 PM

just draw the image. Then, call
where x and y are the location of the
picture and width and height, well
that's self explainable.

If that dos'nt work then create
bufferedImage Objects of the two
pictures then create another using


this will return a cropped porsion
of the image that can be drawn

Good Luck,
About | Sitemap | Contact