permaculture playing cards
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java- Image height required" Watch "Java- Image height required" New topic

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.

Tanu Gulati
Darryl Burke

Joined: May 03, 2008
Posts: 5115

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:
subject: Java- Image height required
It's not a secret anymore!