BLoad + image information

New to FreeBASIC? Post your questions here.
Post Reply
zxretrosoft
Posts: 22
Joined: Apr 23, 2013 19:12
Contact:

BLoad + image information

Post by zxretrosoft »

Hello everyone,
I would like to ask one question. Is there any way to find out the size (resolution) of the image (width and height) when it loaded with instructions BLOAD?

Thanks in advance! ;-)
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: BLoad + image information

Post by D.J.Peters »

http://www.freebasic.net/forum/viewtopi ... 22074[code] ' open BMP file
filenum = FreeFile()
If Open( filename For Binary Access Read As #filenum ) <> 0 Then Return NULL

' retrieve BMP dimensions
Get #filenum, 19, bmpwidth
Get #filenum, 23, bmpheight

Close #filenum[/code]
zxretrosoft
Posts: 22
Joined: Apr 23, 2013 19:12
Contact:

Re: BLoad + image information

Post by zxretrosoft »

Vielen Dank für deine Hilfe!

Grüße nach Deutschland! ;-)
Post Reply