Maven module :un.api : api-image :
Class :
un.api.image.color.ColorModel
Extends/Implements :
un.api.image.ImageModel
Subclasses : -
Variables : -
Functions :
getColorSpace,
toColor,
toColorARGB,
toSample,
toSample,
asTupleBuffer
ColorSpace
getColorSpace ()
Color
toColor (Object sample)
int
toColorARGB (Object sample)
Object
toSample (Color color)
Object
toSample (int color)
PixelBuffer
asTupleBuffer (Image image)
All images do not store necesarly rgb values, there can be a indexed color palette
or any other kind of computation to obtain a color.
The color model takes care to convert sample to color and color to sample.
author Johann Sorel