-
Notifications
You must be signed in to change notification settings - Fork 86
u8vector png
Matthias Görges edited this page May 29, 2014
·
3 revisions
u8vector->png saves an u8vector image to PNG file.
Parameter | Description |
---|---|
data | u8vector with image data |
fname | PNG file to save to |
w | Image width |
h | Image height |
Example 1: Modify the panda-icon.png from uSquish to remove all RED color.
> (define fname (string-append (system-directory) (system-pathseparator) "panda-icon.png"))
> (define img (png->u8vector fname))
> (let loop ((i 0))
(if (fx= i (u8vector-length img))
#t
(begin
(u8vector-set! img i 0)
(loop (fx+ i (png-stride fname)))
)
)
)
#t
> (u8vector->png img "panda-changed.png" (png-width fname) (png-height fname))
#t
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip