< Futurebasic < Language < Reference

Syntax

USR IMAGEFILETOPICT

Revised

June 2001 (Release 5)

Description

Use this simple function to read the contents of a graphic image from the disk and convert it into a picture handle. When you are finished with the handle, you will need to dispose of it using KILL PICTURE. INCLUDE "Subs Image Files.Incl"

 WINDOW 1
 pHndl = USR IMAGEFILETOPICT(fName$,vRef%)
 LONG IF pHndl

PICTURE (0,0), pHndl KILL PICTURE pHndl

 XELSE

PRINT "Could not convert image file."

 END IF END IF DO
 HANDLEEVENTS

UNTIL 0 Note: Before you can use this function, you must include it in your project with the following statement: include "Subs Image Files.Incl

See Also

USR CONVERTIMAGEFILE, USR SAVEIMAGEFILEASPICT

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.