l i v e c o d e

Getting the Original Height and Width of an Image
Mac OS 9 Mac OS X Windows Linux

>> Is there a simple way to get the pixel sizes of images (jpeg and gif)
>> in Metacard? In HyperCard, I use the picture command to open them
>> invisibly (this is important), then fetch the size. The picture
>> command does not seem to be part of MetaCard.
(snip)

To do this, import an image and check these props:
the formattedheight of image "xxx"
the formattedwidth of image "xxx"
This will return the original height and width of an image.

Posted 5/5/2002 by Klaus Major to the MetaCard List   (See the complete post/thread)

 Print this tip

News and Rumors Products Services Developer Resources Contact STS About STS