PureBasic - ImagePlugin
Overview
PureBasic supports external image formats through the use of a dynamic native plug-in system. By use of this system, only the required encoder or decoder will be added to the final executable, this in turn, dramatically reduces the size of the final program.
If for example, the application only requires the JPEG decoder, only that code which deals with the JPEG decoder is used.
Another nice feature is: if several decoders are being used, these decoders will be detected automatically, through the use of automatic image format detection.
The following functions support image plugins:
LoadImage(), CatchImage(), SaveImage(), LoadSprite(), CatchSprite() and SaveSprite().
Command Index
UseJPEG2000ImageDecoder
UseJPEG2000ImageEncoder
UseJPEGImageDecoder
UseJPEGImageEncoder
UsePNGImageDecoder
UsePNGImageEncoder
UseTGAImageDecoder
UseTIFFImageDecoder
Example
ImagePlugin.pb
Supported OS
All