/openjdk9/jdk/src/java.desktop/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...] |
/openjdk9/jdk/src/java.desktop/share/native/libawt/awt/image/ |
H A D | dither.h | 56 unsigned short *rgb; member in struct:__anon842 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...] |
/openjdk9/jdk/src/java.desktop/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 57 public int rgbToPixel(int rgb, ColorModel cm) { argument 58 Object obj = cm.getDataElements(rgb, null); 88 return rgb; 108 * original value. For example, an rgb value that has 130 public int rgbToPixel(int rgb, ColorModel cm) { argument 131 return (rgb << 8); 143 public int rgbToPixel(int rgb, ColorModel cm) { argument 144 return rgb; 158 rgbToPixel(int rgb, ColorModel cm) argument 171 rgbToPixel(int rgb, ColorModel cm) argument 193 rgbToPixel(int rgb, ColorModel cm) argument 215 rgbToPixel(int rgb, ColorModel cm) argument 239 rgbToPixel(int rgb, ColorModel cm) argument 271 rgbToPixel(int rgb, ColorModel cm) argument 289 rgbToPixel(int rgb, ColorModel cm) argument 309 rgbToPixel(int rgb, ColorModel cm) argument 324 rgbToPixel(int rgb, ColorModel cm) argument 360 rgbToPixel(int rgb, ColorModel cm) argument 394 rgbToPixel(int rgb, ColorModel cm) argument 410 rgbToPixel(int rgb, ColorModel cm) argument 433 rgbToPixel(int rgb, ColorModel cm) argument [all...] |
/openjdk9/jdk/test/java/awt/image/Headless/ |
H A D | HeadlessRGBImageFilter.java | 37 public int filterRGB(int x, int y, int rgb) {
|
/openjdk9/jdk/src/java.desktop/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 | 91 public int filterRGB(int x, int y, int rgb) { argument 93 int gray = (int)((0.30 * ((rgb >> 16) & 0xff) + 94 0.59 * ((rgb >> 8) & 0xff) + 95 0.11 * (rgb & 0xff)) / 3); 105 return (rgb & 0xff000000) | (gray << 16) | (gray << 8) | (gray << 0);
|
/openjdk9/jdk/src/java.desktop/share/classes/sun/swing/ |
H A D | PrintColorUIResource.java | 49 * @param rgb the color rgb value 52 public PrintColorUIResource(int rgb, Color printColor) { argument 53 super(rgb);
|
/openjdk9/jdk/test/javax/swing/JSlider/8162856/ |
H A D | MetalHiDPISliderThumbTest.java | 88 int rgb = img.getRGB(xMin, y); 90 if (img.getRGB(i, y) != rgb) { 97 rgb = img.getRGB(xMax, y); 99 if (img.getRGB(i, y) != rgb) { 107 rgb = img.getRGB(xc, y); 110 if (img.getRGB(x, y) != rgb) { 118 int rgb = img.getRGB(x, yMin); 120 if (img.getRGB(x, i) != rgb) { 127 rgb = img.getRGB(x, yMax); 129 if (img.getRGB(x, i) != rgb) { [all...] |
/openjdk9/jdk/src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/ |
H A D | TIFFColorConverter.java | 57 * the first three entries of the {@code rgb} array. 62 * @param rgb an array of {@code float}s containing three elements. 63 * @throws NullPointerException if {@code rgb} is 66 * {@code rgb.length < 3}. 68 public abstract void toRGB(float x0, float x1, float x2, float[] rgb); argument
|
H A D | TIFFYCbCrColorConverter.java | 98 public void toRGB(float x0, float x1, float x2, float[] rgb) { argument 108 rgb[0] = Cr*(2 - 2*lumaRed) + Y; 109 rgb[2] = Cb*(2 - 2*lumaBlue) + Y; 110 rgb[1] = (Y - lumaBlue*rgb[2] - lumaRed*rgb[0])/lumaGreen;
|
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/plaf/ |
H A D | ColorUIResource.java | 64 * @param rgb the combined RGB components 66 public ColorUIResource(int rgb) { argument 67 super(rgb);
|
/openjdk9/jdk/src/java.desktop/share/native/libawt/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 | 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 | 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 | 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; 175 PREFIX ## rgb [all...] |
H A D | ByteIndexed.h | 122 #define ByteIndexedPixelFromArgb(pixel, rgb, pRasInfo) \ 125 ExtractIntDcmComponentsX123(rgb, r, g, b); \ 130 #define LoadByteIndexedTo1IntRgb(pRas, PREFIX, x, rgb) \ 131 (rgb) = PREFIX ## Lut[pRas[x]] 138 jint rgb = PREFIX ## Lut[pRas[x]]; \ 139 ExtractIntDcmComponentsX123(rgb, r, g, b); \ 160 #define StoreByteIndexedFrom1IntRgb(pRas, PREFIX, x, rgb) \ 163 ExtractIntDcmComponentsX123(rgb, r, g, b); \ 208 jint PREFIX ## rgb; 213 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); \
|
/openjdk9/jdk/test/sanity/client/lib/jemmy/src/org/netbeans/jemmy/image/ |
H A D | ColorImageComparator.java | 129 * @param rgb an original color. 132 public int mapColor(int rgb); argument 152 public int mapColor(int rgb) { argument 153 return (rgb == foreground) ? 0xffffff : 0; 174 public int mapColor(int rgb) { argument 175 return (rgb == background) ? 0 : rgb;
|
/openjdk9/jdk/test/java/awt/Graphics2D/DrawString/ |
H A D | LCDTextSrcEa.java | 80 int rgb = target.getRGB(px, py); 81 int r = (rgb & 0xff0000) >> 16; 82 int g = (rgb & 0x00ff00) >> 8; 83 int b = (rgb & 0x0000ff);
|
/openjdk9/jdk/src/java.desktop/share/native/libawt/awt/image/cvutils/ |
H A D | img_icm.h | 62 cmrgb = (unsigned int *) unhand(icm->rgb); \ 63 mapsize = obj_length(icm->rgb); \
|