Image Handlers
#blitzmax #library
|
2 mesi fa | |
---|---|---|
bmp.mod | 3 anni fa | |
cms.mod | 2 anni fa | |
gif.mod | 1 anno fa | |
ilbm.mod | 6 mesi fa | |
jpeg2000.mod | 2 anni fa | |
jpg.mod | 3 anni fa | |
jxl.mod | 2 anni fa | |
jxlwriter.mod | 2 anni fa | |
pcx.mod | 3 anni fa | |
pic.mod | 3 anni fa | |
png.mod | 2 mesi fa | |
pnm.mod | 3 anni fa | |
qoi.mod | 3 anni fa | |
raw.mod | 3 anni fa | |
stb.mod | 10 mesi fa | |
svg.mod | 10 mesi fa | |
tga.mod | 3 anni fa | |
tiff.mod | 5 mesi fa | |
webp.mod | 1 anno fa | |
yuv.mod | 11 mesi fa | |
.gitignore | 3 anni fa | |
README.md | 2 anni fa |
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
.
The following image formats are currently supported :
Usage :
Import Image.BMP
See Wikipedia for more information about the format.
Usage :
Import Image.GIF
Supports 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.ILBM
See Wikipedia for more information about the format.
Usage :
Import Image.JPG
See Wikipedia for more information about the format.
Usage :
Import Image.PCX
See Wikipedia for more information about the format.
Usage :
Import Image.PIC
See Wikipedia for more information about the format.
Usage :
Import Image.PNG
See Wikipedia for more information about the format.
Usage :
Import Image.PNM
See Wikipedia for more information about the format.
Usage :
Import Image.QOI
Usage :
Import Image.RAW
See Wikipedia for more information about the format.
Usage :
Import Image.SVG
See Wikipedia for more information about the format.
Usage :
Import Image.TGA
See Wikipedia for more information about the format.
Usage :
Import Image.WEBP
See Wikipedia for more information about the format.