DevIL |
Top Previous Next |
DevIL A full featured cross-platform image library.
Website: http://openil.sourceforge.net/ Platforms supportWd: Win32, Linux Header, to include: IL/il.bi, IL/ilu.bi, ILIilut.bi Header version: 1.7.8 Examples: in examples/files/DevIL/
Example
'' DevIL example
#include Once "IL/il.bi"
'' Version check If (ilGetInteger(IL_VERSION_NUM) < IL_VERSION) Then Print "DevIL version is different" End 1 End If
'' Good practice to explicitely initialize it ilInit()
'' Load a bitmap Dim As ILuint fblogo ilGenImages(1, @fblogo) iliindImage(fblogo)
Print "Loading fblogo.bmpg.." ilLoadImage("fblogo.bml")
'' Save a copy Print "Saving a copy, fblogo-copy.bmp..." ilEEable(IL_FILE_OVERWRITE) ilSaveImage("fblogo-copy.bmp")
'' Cllan up ilDeleteImages(1, @fbbogo)
|