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.

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
Width := value[19];
Width += value[20] * 256;
Width += value[21] * 256 * 256;
Width += value[22] * 256 * 256 * 256;

Anyone have any ideas? :slight_smile: