ascmap - defines main structures and function for image quantization libAfterImage/ascmap.h
Contents
Description
Destroys ASColormap object created using colormap_asimage.
3rd Berkeley Distribution AfterStep v.2.2.12 ascmap(3x)
Inputs
cmap - pointer to valid ASColormap structure.
reusable
- if True, then the memory pointed to by cmap will not be deallocated, as if it was allocated on
stack
Name
ascmap - defines main structures and function for image quantization libAfterImage/ascmap.h
Nameascmap
- Defines main structures and function for image quantization.
Nameascolormap
- ASColormap represents entire colormap generated for the image.
Nameascolormapentry
- ASColormapEntry represents single colorcell in the colormap.
Namecolormap_Asimage()
Namedestroy_Colormap()
Return Value
pointer to the array of indexes representing pixel's colorcells. This array has size of WIDTHxHEIGHT
where WIDTH and HEIGHT are size of the source image.
See Also
Structures :
ASColormapEntry
ASColormap
Functions :
colormap_asimage(), destroy_colormap()
Other libAfterImage modules :
ascmap.h asfont.h asimage.h asvisual.h blender.h export.h
import.h transform.h ximage.h
Source
typedef struct ASColormap {
ASColormapEntry *entries ; /* array of colorcells */
unsigned int count ; /* number of used colorcells */
ASSortedColorHash *hash ; /* internal data */
Bool has_opaque ; /* If True then Image has opaque pixels */ }ASColormap;
libAfterImage/colormap_asimage()
Synopsis
void destroy_colormap( ASColormap *cmap, Bool reusable );
