Disponible
amalgame-image
Décode/encode PNG/JPG/BMP/TGA/GIF/PSD/HDR via stb_image.
Vue d'ensemble
Wrapper sur stb_image.h et stb_image_write.h (public domain). Chargement et écriture d'images dans tous les formats courants sans dépendance système. Tampon RGBA exposé en List<int>.
Caractéristiques
- ✓Décode : PNG, JPG, BMP, TGA, GIF, PSD, HDR
- ✓Encode : PNG, JPG, BMP, TGA
- ✓Conversion entre formats par double-passe load/save
- ✓Resize via stb_image_resize
- ✓Vendored — pas de dép externe
Exemple
Exemple minimal d'utilisation — recopiable tel quel après l'install.
amc package add image
let img = Image.Load("input.png")
let small = img.Resize(256, 256)
small.Save("thumb.jpg", quality: 85)
En bref
- Licence : Apache-2.0
- Installation :
amc package add image - Code source : amalgame-lang/amalgame-image
- Index officiel : amalgame-lang/packages-index