BlitzMax includes support for loading many different image formats.
Simply import one of the image modules, and you will be able to load images of that format into a TPixmap.
Import Image.DDS to load BC1/BC3 DDS containers into TTextureData, retaining
compressed blocks and mip levels. This also enables DDS in the new Max2D image
loaders. DDS data is not decoded into TPixmap. See Image.DDS
for supported headers, stream loading and backend limitations.
The following image formats are currently supported :
Usage :
Import Image.BMPSee Wikipedia for more information about the format.
Usage :
Import Image.GIFSupports both static and animated GIFs.
To load an animated GIF, use the following function, TGifImage.LoadImage(url:Object) :
Local image:TImage = TGifImage.LoadImage("image-name.gif")This function returns a fully populated Max2D TImage object directly (similar to calling LoadAnimImage), rather than a TPixmap.
GIF frame delays are stored in the frameDuration:Int[] field of TImage as a time in milliseconds.
See Wikipedia for more information about the format.
Usage :
Import Image.ILBMSee Wikipedia for more information about the format.
Usage :
Import Image.JPGSee Wikipedia for more information about the format.
Usage :
Import Image.PCXSee Wikipedia for more information about the format.
Usage :
Import Image.PICSee Wikipedia for more information about the format.
Usage :
Import Image.PNGSee Wikipedia for more information about the format.
Usage :
Import Image.PNMSee Wikipedia for more information about the format.
Usage :
Import Image.QOIUsage :
Import Image.RAWSee Wikipedia for more information about the format.
Usage :
Import Image.SVGSee Wikipedia for more information about the format.
Usage :
Import Image.TGASee Wikipedia for more information about the format.
Usage :
Import Image.WEBPSee Wikipedia for more information about the format.