Method Image.Colortable()->map()
- Method map
map(objectobjectimage)
res =objectImage.Colortable()*image
res =objectimage*Image.Colortable()
map(objectstringdata,intxsize,intysize)
res =objectImage.Colortable()*data
res =objectdata*Image.Colortable()- Description
-
Map colors in an image object to the colors in the colortable, and creates a new image with the closest colors.





no dither 




floyd_steinberg dither 




ordered dither 





randomcube dither original 2 4 8 16 32 colors - Returns
-
a new image object
- Note
-
Flat (not cube) colortable and not 'full' method: this method does figure out the data needed for the lookup method, which may take time the first use of the colortable - the second use is quicker.
- See also