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! ;-)
BLoad + image information
-
- Posts: 22
- Joined: Apr 23, 2013 19:12
- Contact:
-
- Posts: 8586
- Joined: May 28, 2005 3:28
- Contact:
Re: BLoad + image information
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]
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]
-
- Posts: 22
- Joined: Apr 23, 2013 19:12
- Contact:
Re: BLoad + image information
Vielen Dank für deine Hilfe!
Grüße nach Deutschland! ;-)
Grüße nach Deutschland! ;-)