Get height and width of a picture (file)

Hi all

I need to know the dimensions of an image file, that is placed on a disk.
I will do this using an InStream, as Søren Nielsen has created a method for here.

http://gotcal.com/index.php/2010/11/replacing-cronus-logo-with-companyinformation-picture-in-stylesheets/

I have imported the image to a blob temporarily.

According to the specs, the Value variable in this function should be Binary100, but I cannot get it to compile.
It says that Binary is not supported??

The function looks like this.

GetBitmapWidth(inStr : InStream) Width : Integer
inStr.READ(value);
Width := value[19];
Width += value[20] * 256;
Width += value[21] * 256 * 256;
Width += value[22] * 256 * 256 * 256;

Anyone have any ideas? :slight_smile: