Forums Register Login

draw image problems Canvas

+Pie Number of slices to send: Send
Hey Guys,
i am drawing an image inside a canvas using Graphics.drawImage(image,dx1,dy1,dx2,dy2,sx1,sy1,sx2,sy2,Color,imageObserver)
i am using the imageObserver as the Canvas
the canvas is 500x600, so is the applet, and the scrollPane. in short everything is 500x600
the problem i face is that when drawing the image, i set the source parameters (sx...) to the dimenstions of the original image, yet when setting the destination parameters, even if i set the x coordinate of the second point (dx2) to 800, it keeps drawing inside the canvas..how come is that happening ?
HELP !!
+Pie Number of slices to send: Send
it keeps drawing inside the canvas — I don't understand what you're asking.
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1298 times.
Similar Threads
Drawing Image Doubles Memory Consumption
Canvas to BufferedImage while using Bufferstrategy
Double buffering delivered widgets
Image icon problem
Printing hi-res (say, 300 dpi) images
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 23:23:48.