Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes Java- Image height required Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java- Image height required" Watch "Java- Image height required" New topic
Author

Java- Image height required

Tanu Gulati
Ranch Hand

Joined: Oct 06, 2008
Posts: 113

I have a java program that loads a list of images from database in the array of bytes format. I wanted to get the height of each image and use it for further processing.
Below code when i run i can print height on console BUT I can not acess this height outiside this inner class. Any suggestions how can i get the height outside this inner class in my java program.




thanks
Tanu Gulati
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4530
    
    5

The scope of the Image and ImageObserver variables isn't deducible from your code fragment. To get better help sooner, post a SSCCE that clearly demonstrates your problem.

luck, db
There are no new questions, but there may be new answers.
Tanu Gulati
Ranch Hand

Joined: Oct 06, 2008
Posts: 113

I got this problem resolved i used below code to get height of image.



Learned some thing new today hurray
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java- Image height required