Maven module :un.api : api-image :
Class :
un.api.image.color.DirectColorModel
Extends/Implements :
un.api.image.color.AbstractColorModel
Subclasses : -
Variables : -
Functions :
DirectColorModel,
getMapping,
isAlphaPreMultiplied,
toColor,
toColorARGB,
toSample,
toSample
public void
DirectColorModel (RawModel rawModel, int[] mapping, boolean alphaPremultiplied)
public int[]
getMapping ()
public boolean
isAlphaPreMultiplied ()
public Color
toColor (Object sample)
public int
toColorARGB (Object sample)
public Object
toSample (Color color)
public Object
toSample (int color)
the sample value is readed, minimum adjustment are necesseray to obtain a color.
Supported sample types are :
BYTE UBYTE -> expected to be range 0-255
FLOAT DOUBLE -> expected to be range 0-1
author Johann Sorel