Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detect image size... 1

Status
Not open for further replies.

Neil Toulouse

Programmer
Mar 18, 2002
882
GB
Hi there!

I have a need to display some images in an application. These images can be either landsape or portrait, BUT the longest side is always fixed at 500 pixels.

So that I can change my form accordingly, is there a way to detect the orientation by detecting the longest side before the image is displayed?

TIA

Neil

I like work. It fascinates me. I can sit and look at it for hours...
 
I use an activex component to manipulate images, as it makes it pretty easy to detmine the size etc.

It is called imaageviewer from viscomsoft

Works really well for me.

Regards

Griff
Keep [Smile]ing
 
Excellent! Thanks Mike, I new there would be an easy way :)

I like work. It fascinates me. I can sit and look at it for hours...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top