2
0

Image Handlers

#blitzmax #library

Brucey 095b702021 Added Jpeg 2000 image loader. 2 жил өмнө
bmp.mod e34ab67697 Example tweaks. 3 жил өмнө
cms.mod 30d2151aea Added image.cms (wip) 3 жил өмнө
gif.mod 6469fa3fb8 Forgot flags 2 жил өмнө
ilbm.mod 02f2c32360 Added missing include. 2 жил өмнө
jpeg2000.mod 095b702021 Added Jpeg 2000 image loader. 2 жил өмнө
jpg.mod e34ab67697 Example tweaks. 3 жил өмнө
jxl.mod b6f7ff47cb JXL only available for 64-bit builds. 2 жил өмнө
jxlwriter.mod b6f7ff47cb JXL only available for 64-bit builds. 2 жил өмнө
pcx.mod f580bdfe65 Requires c99. 3 жил өмнө
pic.mod 3be3e9cb9d Added PIC image loader. Resolves #8. 3 жил өмнө
png.mod 9affee4535 Fixed import path. 2 жил өмнө
pnm.mod e34ab67697 Example tweaks. 3 жил өмнө
qoi.mod e34ab67697 Example tweaks. 3 жил өмнө
raw.mod e34ab67697 Example tweaks. 3 жил өмнө
stb.mod d22bb03568 Updated version & history 2 жил өмнө
svg.mod e142db7ef8 Fixed loader returning an empty pixmap 2 жил өмнө
tga.mod e34ab67697 Example tweaks. 3 жил өмнө
tiff.mod 383192db35 Added TIFF image loader. Resolves #4. 3 жил өмнө
webp.mod e34ab67697 Example tweaks. 3 жил өмнө
.gitignore d477cdd6f7 Added Qoi image loader. Resolves #2. 3 жил өмнө
README.md 1c992a6ad4 Ensure libpng uses the correct zlib header. 2 жил өмнө

README.md

image.mod

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.

Supported formats

The following image formats are currently supported :

BMP

Usage :

Import Image.BMP

See Wikipedia for more information about the format.

GIF

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.

IFF/ILBM

Usage :

Import Image.ILBM

See Wikipedia for more information about the format.

JPG

Usage :

Import Image.JPG

See Wikipedia for more information about the format.

PCX

Usage :

Import Image.PCX

See Wikipedia for more information about the format.

PIC

Usage :

Import Image.PIC

See Wikipedia for more information about the format.

PNG

Usage :

Import Image.PNG

See Wikipedia for more information about the format.

PNM

Usage :

Import Image.PNM

See Wikipedia for more information about the format.

QOI

Usage :

Import Image.QOI

See https://qoiformat.org/

RAW

Usage :

Import Image.RAW

See Wikipedia for more information about the format.

SVG

Usage :

Import Image.SVG

See Wikipedia for more information about the format.

TGA

Usage :

Import Image.TGA

See Wikipedia for more information about the format.

WEBP

Usage :

Import Image.WEBP

See Wikipedia for more information about the format.