[Top]
predef::
Image
Image.PNG
|
Method Image.PNG.encode()
- Method
encode
-
string Image.PNG.encode(object image)
string Image.PNG.encode(object image, object mappingoptions)
- Description
-
-
Encodes a PNG image.
The options argument may be a mapping
containing zero or more encoding options:
normal options:
"alpha":image object
Use this image as alpha channel
(Note: PNG alpha channel is grey.
The values are calculated by (r+2g+b)/4.)
"palette":colortable object
Use this as palette for pseudocolor encoding
(Note: encoding with alpha channel and pseudocolor
at the same time are not supported)
- Note
-
-
Please read some about PNG files.
|