public class SignedColorModel
extends java.awt.image.ColorModel
Modifier and Type | Field and Description |
---|---|
private java.awt.image.ComponentColorModel |
helper |
private int |
max |
private int |
nChannels |
private int |
pixelBits |
Constructor and Description |
---|
SignedColorModel(int pixelBits,
int dataType,
int nChannels) |
Modifier and Type | Method and Description |
---|---|
java.awt.image.WritableRaster |
createCompatibleWritableRaster(int w,
int h) |
int |
getAlpha(int pixel) |
int |
getAlpha(java.lang.Object data) |
int |
getBlue(int pixel) |
int |
getBlue(java.lang.Object data) |
java.lang.Object |
getDataElements(int rgb,
java.lang.Object pixel) |
int |
getGreen(int pixel) |
int |
getGreen(java.lang.Object data) |
int |
getRed(int pixel) |
int |
getRed(java.lang.Object data) |
boolean |
isCompatibleRaster(java.awt.image.Raster raster) |
private static int[] |
makeBitArray(int nChannels,
int nBits) |
private int |
rescale(int value) |
private int |
rescale(int value,
int max) |
coerceData, createCompatibleSampleModel, equals, finalize, getAlphaRaster, getColorSpace, getComponents, getComponents, getComponentSize, getComponentSize, getDataElement, getDataElement, getDataElements, getDataElements, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRGB, getRGB, getRGBdefault, getTransferType, getTransparency, getUnnormalizedComponents, hasAlpha, hashCode, isAlphaPremultiplied, isCompatibleSampleModel, toString
private int pixelBits
private int nChannels
private java.awt.image.ComponentColorModel helper
private int max
public SignedColorModel(int pixelBits, int dataType, int nChannels) throws java.io.IOException
java.io.IOException
public java.lang.Object getDataElements(int rgb, java.lang.Object pixel)
getDataElements
in class java.awt.image.ColorModel
public boolean isCompatibleRaster(java.awt.image.Raster raster)
isCompatibleRaster
in class java.awt.image.ColorModel
public java.awt.image.WritableRaster createCompatibleWritableRaster(int w, int h)
createCompatibleWritableRaster
in class java.awt.image.ColorModel
public int getAlpha(int pixel)
getAlpha
in class java.awt.image.ColorModel
public int getBlue(int pixel)
getBlue
in class java.awt.image.ColorModel
public int getGreen(int pixel)
getGreen
in class java.awt.image.ColorModel
public int getRed(int pixel)
getRed
in class java.awt.image.ColorModel
public int getAlpha(java.lang.Object data)
getAlpha
in class java.awt.image.ColorModel
public int getRed(java.lang.Object data)
getRed
in class java.awt.image.ColorModel
public int getGreen(java.lang.Object data)
getGreen
in class java.awt.image.ColorModel
public int getBlue(java.lang.Object data)
getBlue
in class java.awt.image.ColorModel
private int rescale(int value, int max)
private int rescale(int value)
private static int[] makeBitArray(int nChannels, int nBits)
Copyright © 2019 Open Microscopy Environment