Forums Register Login

image

+Pie Number of slices to send: Send
hi all....
i have got one image in a panel, having the size same as the panel. What i want is the image should get resized with the panel size. So the question is can i change the size of the image by any means?
thx in advance.............Ajit
+Pie Number of slices to send: Send
hello again........

i found the method image.getScaledImage() which i can use in this case. and scale can be easily calculated from size of panel.
but still if there is any other way to do the same thing plzzzz let me know.
thx.........Ajit
+Pie Number of slices to send: Send
http://xarch.tu-graz.ac.at/publ/tutorial/java/tutorials/5120/Java172.htm
Look at the example source program at the bottom of the page and you'll see how RB did it. His site is great - make sure you visit his home at http://www.phrantic.com/scoop/toc.htm!
Good luck...
+Pie Number of slices to send: Send
thx Gerry.........

the first one is really a good link. But the second one u suggested is not working. neway thx for replying........ Ajit
+Pie Number of slices to send: Send
Look carefully at that second link. Somehow my exclamation point got put into the link! The file is real link is http://www.phrantic.com/scoop/toc.htm, so try that. Took me a minute to realize the ! wasn't a l. !!!
For my next feat, I will require a volunteer from the audience! Perhaps this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 874 times.
Similar Threads
Adding an Image to JPanel using NetBeans IDE
IMAGES
Image Display Error
invisible canvas
Scrolling BufferedImage
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:51:44.