Dav's Qbasic Site.

Dav's mug.

 

Main

News

Forum

Qbasic/QB45

QB64

QBKB

Projects

More...

 

Forum


Back to Messages

Dav (Sun Jan 19 2014 at 5:38 pm)
Re: Re: Loadimage = folder

Hi Delsus, welcome to my little QB site.

Unless you specify the path along with the image filename, _LOADIMAGE will expect the image file to be in the current directory where the program is running.  When the program cannot find the image file an ILLEGAL FUNCTION CALL error will result.

Also, make sure you are in a Graphics screen before loading the image (not SCREEN 0).   For me, QB64 complains with that same error message when trying to load an image file before entering a graphics screen mode.

Side note: make sure to use _FREEIMAGE to free up the resources your program uses before your program ends.

Here is the QB64 wiki page about _LOADIMAGE that may be more helpful:
http://www.qb64.net/wiki/index.php?title=LOADIMAGE

- Dav


Reply to this Message


Name
Subject
Message

No HTML code will be allowed in the message.
All SPAM and inappropriate material will be deleted.

Powered by FlatForum 1.4

© Copyright 2011 by Dav - All Rights Reserved.
Hosted by www.qbasicnews.com.
Users now online: 2
Hits: 16892