export with palette | ||||||||||||||||||||||
Type | command | |||||||||||||||||||||
Dictionary | LCS | |||||||||||||||||||||
Library | LiveCode Script | |||||||||||||||||||||
Syntax |
| |||||||||||||||||||||
Summary | Exports the selected image as a PBM, JPEG, GIF, BMP or PNG file. | |||||||||||||||||||||
Introduced | 4.5 | |||||||||||||||||||||
OS | mac, windows, linux | |||||||||||||||||||||
Platforms | desktop | |||||||||||||||||||||
Parameters |
| |||||||||||||||||||||
Example |
| |||||||||||||||||||||
Related | Keyword: as, file, image, paint, URL Property: defaultFolder, JPEGQuality, selected Command: export, export snapshot, import Glossary: BMP, command, container, export, GIF, JPEG, PBM, PNG | |||||||||||||||||||||
Security | disk | |||||||||||||||||||||
Description | Use the export with palette command to export an image to a file or container with color reduction. The export with palette form exports an image in either PNG or GIF format with a specific size or type of palette. If the standard palette form is used, then the image will be color-matched to the default 256 color LiveCode palette before export. If the optimized palette form is used, then a palette with the colorCount colors will be generated that does its best to approximate all the colors present in the image. The image will be color-matched to this palette before export. If colorList is not specified, a 256 entry palette will be generated. If the palette colorList form is used, the image will be color-matched to that palette before export. If the image has any sort of transparency, then this will utilize one palette entry. In particular, if you ask for a 256 color palette with a transparent image, you may get only 255 colors. In all cases, optional dithering will be performed as determined by its dontDither property.
|