This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, Can anyone give me idea how to read images from a file. To load the image in a frame we can use ToolKit, but I have to read the image. I read about JAI (Java Advanced Imaging), I am not sure about using it. Thanks, Vanitha.
Foll code is used to load an image from a file. Image im = getToolkit().getImage("imgFile.gif"); Let me know if you need anything else. Hope it helps !!
Joined: Apr 11, 2001
Thanks for your reply. I have used Toolkit to load the image into the Frame. What I really want to know is how to get the details about the image, like getting the height, width.. of the image. Vanitha.