Lines Matching defs:cs
62 public static BufferedImage createCCMImage(int cs, int dataType)
65 ColorSpace cSpace = ColorSpace.getInstance(cs);
70 ((cs == ColorSpace.CS_GRAY)?
85 public static BufferedImage createDCMImage(int type, int cs) {
86 if (type == BufferedImage.TYPE_INT_RGB && cs == ColorSpace.CS_sRGB) {
94 ColorSpace cSpace = ColorSpace.getInstance(cs);
155 public static void fillCCM(DataBuffer data, SampleModel sm, ColorSpace cs) {
156 switch (cs.getType()) {
197 pixel[0] = (i/255.0)*(cs.getMaxValue(0) -
198 cs.getMinValue(0)) +
199 cs.getMinValue(0);
200 pixel[1] = (j/255.0)*(cs.getMaxValue(1) -
201 cs.getMinValue(1)) +
202 cs.getMinValue(1);
203 pixel[2] = (((i + j)>>1)/255.0)*(cs.getMaxValue(2) -
204 cs.getMinValue(2))+
205 cs.getMinValue(2);
213 pixel[0] = (i/255.0f)*(cs.getMaxValue(0) -
214 cs.getMinValue(0)) +
215 cs.getMinValue(0);
216 pixel[1] = (j/255.0f)*(cs.getMaxValue(1) -
217 cs.getMinValue(1)) +
218 cs.getMinValue(1);
219 pixel[2] = (((i + j)>>1)/255.0f)*(cs.getMaxValue(2)-
220 cs.getMinValue(2))
221 + cs.getMinValue(2);
259 pixel[0] = (i/255.0)*(cs.getMaxValue(0) -
260 cs.getMinValue(0)) +
261 cs.getMinValue(0);;
269 pixel[0] = (i/255.0f)*(cs.getMaxValue(0) -
270 cs.getMinValue(0)) +
271 cs.getMinValue(0);;