/openjdk7/jdk/src/share/classes/javax/swing/colorchooser/ |
H A D | ColorModelHSV.java | 63 * @param rgb a float array with length of at least 3 67 private static float[] HSVtoRGB(float[] hsv, float[] rgb) { argument 68 if (rgb == null) { 69 rgb = new float[3]; 75 rgb[0] = value; 76 rgb[1] = value; 77 rgb[2] = value; 85 rgb[1] *= 1.0f - saturation * (1.0f - f); 86 rgb[2] *= 1.0f - saturation; 89 rgb[ 122 RGBtoHSV(float[] rgb, float[] hsv) argument [all...] |
H A D | ColorModelCMYK.java | 53 * @param rgb a float array with length of at least 3 57 private static float[] CMYKtoRGB(float[] cmyk, float[] rgb) { argument 58 if (rgb == null) { 59 rgb = new float[3]; 61 rgb[0] = 1.0f + cmyk[0] * cmyk[3] - cmyk[3] - cmyk[0]; 62 rgb[1] = 1.0f + cmyk[1] * cmyk[3] - cmyk[3] - cmyk[1]; 63 rgb[2] = 1.0f + cmyk[2] * cmyk[3] - cmyk[3] - cmyk[2]; 64 return rgb; 70 * @param rgb a float array with length of at least 3 76 private static float[] RGBtoCMYK(float[] rgb, floa argument [all...] |
H A D | ColorModelHSL.java | 63 * @param rgb a float array with length of at least 3 67 private static float[] HSLtoRGB(float[] hsl, float[] rgb) { argument 68 if (rgb == null) { 69 rgb = new float[3]; 79 rgb[0]= normalize(q, p, (hue < 4.0f) ? (hue + 2.0f) : (hue - 4.0f)); 80 rgb[1]= normalize(q, p, hue); 81 rgb[2]= normalize(q, p, (hue < 2.0f) ? (hue + 4.0f) : (hue - 2.0f)); 84 rgb[0] = lightness; 85 rgb[1] = lightness; 86 rgb[ 100 RGBtoHSL(float[] rgb, float[] hsl) argument [all...] |
/openjdk7/jdk/src/share/native/sun/awt/image/ |
H A D | dither.h | 56 unsigned short *rgb; member in struct:__anon685 61 #define INSERTNEW(state, rgb, index) do { \ 62 if (!state.usedFlags[rgb]) { \ 63 state.usedFlags[rgb] = 1; \ 64 state.iLUT[rgb] = index; \ 65 state.rgb[state.activeEntries] = rgb; \ 73 if (((rgb & mask) + delta) <= mask) { \ 74 rgb += delta; \ 75 INSERTNEW(state, rgb, inde [all...] |
H A D | dither.c | 53 int r, g, b, rgb = prgb[i]; local 54 if (rgb == 0x0) { 58 r = (rgb >> 16) & 0xff; 59 g = (rgb >> 8 ) & 0xff; 60 b = rgb & 0xff; 113 currentState.rgb = (unsigned short *)malloc(6 116 if (currentState.rgb == NULL) { 125 free(currentState.rgb); 135 unsigned short rgb = priorState->rgb[ local 215 unsigned short rgb; local [all...] |
/openjdk7/jdk/src/share/classes/sun/awt/image/ |
H A D | PixelConverter.java | 32 * rgb colorspace specification and the equivalent value for a pixel 35 * and rgb values is inherently tied to the type of surface we are 56 public int rgbToPixel(int rgb, ColorModel cm) { argument 57 Object obj = cm.getDataElements(rgb, null); 87 return rgb; 107 * original value. For example, an rgb value that has 129 public int rgbToPixel(int rgb, ColorModel cm) { argument 130 return (rgb << 8); 142 public int rgbToPixel(int rgb, ColorModel cm) { argument 143 return rgb; 157 rgbToPixel(int rgb, ColorModel cm) argument 170 rgbToPixel(int rgb, ColorModel cm) argument 192 rgbToPixel(int rgb, ColorModel cm) argument 214 rgbToPixel(int rgb, ColorModel cm) argument 238 rgbToPixel(int rgb, ColorModel cm) argument 270 rgbToPixel(int rgb, ColorModel cm) argument 288 rgbToPixel(int rgb, ColorModel cm) argument 308 rgbToPixel(int rgb, ColorModel cm) argument 323 rgbToPixel(int rgb, ColorModel cm) argument 359 rgbToPixel(int rgb, ColorModel cm) argument 393 rgbToPixel(int rgb, ColorModel cm) argument 409 rgbToPixel(int rgb, ColorModel cm) argument 432 rgbToPixel(int rgb, ColorModel cm) argument [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | DebugGraphicsFilter.java | 43 public int filterRGB(int x, int y, int rgb) { argument 44 return color.getRGB() | (rgb & 0xFF000000);
|
H A D | GrayFilter.java | 77 public int filterRGB(int x, int y, int rgb) { argument 79 int gray = (int)((0.30 * ((rgb >> 16) & 0xff) + 80 0.59 * ((rgb >> 8) & 0xff) + 81 0.11 * (rgb & 0xff)) / 3); 91 return (rgb & 0xff000000) | (gray << 16) | (gray << 8) | (gray << 0);
|
/openjdk7/jdk/src/share/classes/sun/swing/ |
H A D | PrintColorUIResource.java | 48 * @param rgb the color rgb value 51 public PrintColorUIResource(int rgb, Color printColor) { argument 52 super(rgb);
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/ |
H A D | ColorUIResource.java | 55 public ColorUIResource(int rgb) { argument 56 super(rgb);
|
/openjdk7/jdk/src/share/native/sun/java2d/loops/ |
H A D | Ushort4444Argb.c | 59 jint PixelForUshort4444Argb(SurfaceDataRasInfo *pRasInfo, jint rgb) argument 61 return IntArgbToUshort4444Argb(rgb);
|
H A D | Ushort555Rgbx.h | 58 #define IntArgbToUshort555Rgbx(rgb) \ 59 (Ushort555RgbxPixelType)((((rgb) >> (16 + 3 - 11)) & 0xf800) | \ 60 (((rgb) >> ( 8 + 3 - 6)) & 0x07c0) | \ 61 (((rgb) >> ( 0 + 3 - 1)) & 0x003e)) 63 #define Ushort555RgbxPixelFromArgb(pixel, rgb, pRasInfo) \ 64 (pixel) = IntArgbToUshort555Rgbx(rgb) 90 #define StoreUshort555RgbxFrom1IntArgb(pRas, PREFIX, x, rgb) \ 91 (pRas)[x] = IntArgbToUshort555Rgbx(rgb) 93 #define StoreUshort555RgbxFrom1IntRgb(pRas, PREFIX, x, rgb) \ 94 StoreUshort555RgbxFrom1IntArgb(pRas, PREFIX, x, rgb) [all...] |
H A D | Ushort4444Argb.h | 60 #define IntArgbToUshort4444Argb(rgb) \ 61 (Ushort4444ArgbPixelType)((((rgb) << 8) & 0xf000) | \ 62 (((rgb) << 4) & 0x0f00) | \ 63 (((rgb) << 0) & 0x00f0) | \ 64 (((rgb) >> 4) & 0x000f)) 66 #define Ushort4444ArgbPixelFromArgb(pixel, rgb, pRasInfo) \ 67 (pixel) = IntArgbToUshort4444Argb(rgb) 100 #define LoadUshort4444ArgbTo1IntRgb(pRas, PREFIX, x, rgb) \ 104 (rgb) = 0xff000000 | (r << 16) | (g << 8) | (b << 0); \ 107 #define StoreUshort4444ArgbFrom1IntArgb(pRas, PREFIX, x, rgb) [all...] |
H A D | Ushort555Rgb.h | 63 #define IntArgbToUshort555Rgb(rgb) \ 64 (Ushort555RgbPixelType)((((rgb) >> (16 + 3 - 10)) & 0x7c00) | \ 65 (((rgb) >> ( 8 + 3 - 5)) & 0x03e0) | \ 66 (((rgb) >> ( 0 + 3 - 0)) & 0x001f)) 68 #define Ushort555RgbPixelFromArgb(pixel, rgb, pRasInfo) \ 69 (pixel) = IntArgbToUshort555Rgb(rgb) 95 #define StoreUshort555RgbFrom1IntRgb(pRas, PREFIX, x, rgb) \ 96 StoreUshort555RgbFrom1IntArgb(pRas, PREFIX, x, rgb) 98 #define StoreUshort555RgbFrom1IntArgb(pRas, PREFIX, x, rgb) \ 99 (pRas)[x] = IntArgbToUshort555Rgb(rgb) [all...] |
H A D | Ushort565Rgb.h | 63 #define IntArgbToUshort565Rgb(rgb) \ 64 (Ushort565RgbPixelType)((((rgb) >> (16 + 3 - 11)) & 0xf800) | \ 65 (((rgb) >> ( 8 + 2 - 5)) & 0x07e0) | \ 66 (((rgb) >> ( 0 + 3 - 0)) & 0x001f)) 68 #define Ushort565RgbPixelFromArgb(pixel, rgb, pRasInfo) \ 69 (pixel) = IntArgbToUshort565Rgb(rgb) 95 #define StoreUshort565RgbFrom1IntArgb(pRas, PREFIX, x, rgb) \ 96 (pRas)[x] = IntArgbToUshort565Rgb(rgb) 98 #define StoreUshort565RgbFrom1IntRgb(pRas, PREFIX, x, rgb) \ 99 StoreUshort565RgbFrom1IntArgb(pRas, PREFIX, x, rgb) [all...] |
H A D | ByteIndexed.h | 121 #define ByteIndexedPixelFromArgb(pixel, rgb, pRasInfo) \ 124 ExtractIntDcmComponentsX123(rgb, r, g, b); \ 129 #define LoadByteIndexedTo1IntRgb(pRas, PREFIX, x, rgb) \ 130 (rgb) = PREFIX ## Lut[pRas[x]] 137 jint rgb = PREFIX ## Lut[pRas[x]]; \ 138 ExtractIntDcmComponentsX123(rgb, r, g, b); \ 159 #define StoreByteIndexedFrom1IntRgb(pRas, PREFIX, x, rgb) \ 162 ExtractIntDcmComponentsX123(rgb, r, g, b); \ 202 jint PREFIX ## rgb; 209 PREFIX ## rgb [all...] |
H A D | UshortIndexed.h | 119 #define UshortIndexedPixelFromArgb(pixel, rgb, pRasInfo) \ 122 ExtractIntDcmComponentsX123(rgb, r, g, b); \ 127 #define LoadUshortIndexedTo1IntRgb(pRas, PREFIX, x, rgb) \ 128 (rgb) = PREFIX ## Lut[(pRas[x])&UshortIndexedLutMask]; 135 jint rgb = PREFIX ## Lut[(pRas[x])&UshortIndexedLutMask]; \ 136 ExtractIntDcmComponentsX123(rgb, r, g, b); \ 145 #define StoreUshortIndexedFrom1IntRgb(pRas, PREFIX, x, rgb) \ 148 ExtractIntDcmComponentsX123(rgb, r, g, b); \ 170 jint PREFIX ## rgb; 177 PREFIX ## rgb [all...] |
H A D | ThreeByteBgr.h | 52 #define ThreeByteBgrPixelFromArgb(pixel, rgb, pRasInfo) \ 53 (pixel) = (rgb) 80 #define LoadThreeByteBgrTo1IntRgb(pRas, PREFIX, x, rgb) \ 81 (rgb) = (((pRas)[3*(x)+0] << 0) | \ 104 #define StoreThreeByteBgrFrom1IntRgb(pRas, PREFIX, x, rgb) \ 106 (pRas)[3*(x)+0] = (jubyte) ((rgb) >> 0); \ 107 (pRas)[3*(x)+1] = (jubyte) ((rgb) >> 8); \ 108 (pRas)[3*(x)+2] = (jubyte) ((rgb) >> 16); \
|
H A D | FourByteAbgrPre.h | 52 #define FourByteAbgrPrePixelFromArgb(pixel, rgb, pRasInfo) \ 55 if (((rgb) >> 24) == -1) { \ 56 (pixel) = (((rgb) << 8) | (((juint) (rgb)) >> 24)); \ 58 ExtractIntDcmComponents1234(rgb, a, r, g, b); \ 94 #define LoadFourByteAbgrPreTo1IntRgb(pRas, PREFIX, x, rgb) \ 95 LoadFourByteAbgrPreTo1IntArgb(pRas, PREFIX, x, rgb) 133 #define StoreFourByteAbgrPreFrom1IntRgb(pRas, PREFIX, x, rgb) \ 136 (pRas)[4*(x)+1] = (jubyte) ((rgb) >> 0); \ 137 (pRas)[4*(x)+2] = (jubyte) ((rgb) >> [all...] |
H A D | ByteBinary1Bit.h | 77 #define ByteBinary1BitPixelFromArgb(pixel, rgb, pRasInfo) \ 78 ByteBinaryPixelFromArgb(ByteBinary1Bit, pixel, rgb, pRasInfo) 85 #define LoadByteBinary1BitTo1IntRgb(pRas, PREFIX, x, rgb) \ 86 LoadByteBinaryTo1IntRgb(ByteBinary1Bit, pRas, PREFIX, x, rgb) 97 #define StoreByteBinary1BitFrom1IntRgb(pRas, PREFIX, x, rgb) \ 98 StoreByteBinaryFrom1IntRgb(ByteBinary1Bit, pRas, PREFIX, x, rgb)
|
H A D | ByteBinary2Bit.h | 77 #define ByteBinary2BitPixelFromArgb(pixel, rgb, pRasInfo) \ 78 ByteBinaryPixelFromArgb(ByteBinary2Bit, pixel, rgb, pRasInfo) 85 #define LoadByteBinary2BitTo1IntRgb(pRas, PREFIX, x, rgb) \ 86 LoadByteBinaryTo1IntRgb(ByteBinary2Bit, pRas, PREFIX, x, rgb) 97 #define StoreByteBinary2BitFrom1IntRgb(pRas, PREFIX, x, rgb) \ 98 StoreByteBinaryFrom1IntRgb(ByteBinary2Bit, pRas, PREFIX, x, rgb)
|
/openjdk7/jdk/src/share/classes/java/awt/image/ |
H A D | IndexColorModel.java | 125 private int rgb[]; field in class:IndexColorModel 338 rgb = new int[calcRealMapSize(bits, size)]; 364 rgb[i] = (alpha << 24) | (r << 16) | (g << 8) | b; 513 rgb = new int[calcRealMapSize(pixel_bits, size)]; 538 rgb[i] = (alpha << 24) | (rc << 16) | (gc << 8) | bc; 546 rgb = new int[calcRealMapSize(pixel_bits, size)]; 578 rgb[i] = cmaprgb; 665 r[i] = (byte) (rgb[i] >> 16); 678 g[i] = (byte) (rgb[i] >> 8); 691 b[i] = (byte) rgb[ 719 getRGBs(int rgb[]) argument 877 getDataElements(int rgb, Object pixel) argument [all...] |
H A D | RGBImageFilter.java | 52 * public int filterRGB(int x, int y, int rgb) { 53 * return ((rgb & 0xff00ff00) 54 * | ((rgb & 0xff0000) >> 16) 55 * | ((rgb & 0xff) << 16)); 160 int rgb = filterRGB(-1, -1, icm.getRGB(i)); 161 a[i] = (byte) (rgb >> 24); 165 r[i] = (byte) (rgb >> 16); 166 g[i] = (byte) (rgb >> 8); 167 b[i] = (byte) (rgb >> 0); 285 * @param rgb th 291 filterRGB(int x, int y, int rgb) argument [all...] |
/openjdk7/jdk/test/java/awt/Graphics2D/DrawString/ |
H A D | LCDTextSrcEa.java | 79 int rgb = target.getRGB(px, py); 80 int r = (rgb & 0xff0000) >> 16; 81 int g = (rgb & 0x00ff00) >> 8; 82 int b = (rgb & 0x0000ff);
|
/openjdk7/jdk/src/share/native/sun/awt/image/cvutils/ |
H A D | img_icm.h | 62 cmrgb = (unsigned int *) unhand(icm->rgb); \ 63 mapsize = obj_length(icm->rgb); \
|