Image properties

Blitz3D Forums/Blitz3D Programming/Image properties

Amanda Dearheart(Posted 2012) [#1]
Is there any method of getting image properties such as width and height.

For example, lets say I --

Image = LoadImage ("C:\file.bmp")

then I would want to

DrawImage Image, 10, 10

Now I would want to place this image in the center of the screen.
Lets say I'm using the 800 x 600 screen graaphic mode.

I would divide the 800 x 600 by 2, then also I would divide the image width and height by 2, and then subtract the image width and height from the screen width and height, and then draw my image.

The only problem is I don't know how to get the width and height from the Image.


Yasha(Posted 2012) [#2]
ImageWidth
ImageHeight

...?


Raul(Posted 2012) [#3]
... and for handle the center of the image you can use MidHandle or AutoMidHandle.


Amanda Dearheart(Posted 2012) [#4]
Thanks guys.
I guess I must have been tired when I looked at my manual!