/openjdk7/jdk/src/share/native/sun/awt/splashscreen/ |
H A D | splashscreen_gfx_impl.c | 55 /* calculates the colorTable for mapping from 0..255 to 0..numColors-1 58 initDither(DitherSettings * pDither, int numColors, int scale) argument 62 pDither->numColors = numColors; 66 (numColors - 1) / MAX_COLOR_VALUE) * scale; 71 (int) baseDitherMatrix[i][j] / (numColors - 1); 87 quantizeColors(int maxNumColors, int *numColors) argument 97 numColors[0] = numColors[1] = numColors[ 126 initColorCube(int *numColors, rgbquad_t * pColorMap, DitherSettings * pDithers, rgbquad_t * colorIndex) argument [all...] |
H A D | splashscreen_gfx.h | 51 int numColors; member in struct:DitherSettings 73 int numColors; // in the colormap, only for indexed color member in struct:ImageFormat 141 void initDither(DitherSettings * pDither, int numColors, int scale); 143 int quantizeColors(int maxNumColors, int *numColors); 145 void initColorCube(int *numColors, rgbquad_t * pColorMap,
|
/openjdk7/jdk/test/javax/imageio/plugins/png/ |
H A D | ShortHistogramTest.java | 58 int numColors = 15; 61 numColors = Integer.parseInt(args[0]); 66 System.out.println("Test number of colors: " + numColors); 68 ShortHistogramTest t = new ShortHistogramTest(numColors); 72 int numColors; field in class:ShortHistogramTest 74 public ShortHistogramTest(int numColors) { argument 75 this.numColors = numColors; 79 BufferedImage bi = createTestImage(numColors); 199 protected BufferedImage createTestImage(int numColors) { argument 220 createTestICM(int numColors) argument 231 getNumBits(int numColors) argument 248 createTestPalette(int numColors) argument [all...] |
H A D | GrayPngTest.java | 94 icm = new IndexColorModel(bpp, numColors, r, g, b); 97 icm = new IndexColorModel(bpp, numColors, r, g, b, trans_pixel); 101 icm = new IndexColorModel(bpp, numColors, r, g, b, a); 110 dx = w / (numColors); 113 for (int i = 0; i < numColors; i ++) { 135 private int numColors; field in class:GrayPngTest 150 numColors = (1 << bpp); 151 System.out.println("Num colors: " + numColors); 154 r = new byte[numColors]; 155 g = new byte[numColors]; [all...] |
/openjdk7/jdk/src/solaris/classes/sun/awt/ |
H A D | X11CustomCursor.java | 78 int numColors = 0; 81 cols[numColors++] = new CCount(tmp[is], 1); 88 if (tmp[i] != cols[numColors-1].color) { 89 cols[numColors++] = new CCount(tmp[i], 1); 91 cols[numColors-1].count ++; 94 java.util.Arrays.sort(cols, 0, numColors); 96 if (numColors > 0) fc = cols[0].color; 104 for (int j = 1; j < numColors; j++) { 112 int rest = pixels.length - ((numColors > 0) ? cols[0].count : 0); 122 for (int j = 1; j < numColors; [all...] |
/openjdk7/jdk/src/solaris/native/sun/awt/splashscreen/ |
H A D | splashscreen_sys.c | 163 unsigned numColors = SPLASH_COLOR_MAP_SIZE; // never try allocating more than that local 165 if (numColors > map_entries) { 166 numColors = map_entries; 170 nFailed = numColors + 1; /* upper bound */ 174 if (XAllocColorCells(display, cmap, 0, pmr, nPlanes, pr, numColors)) { 175 nAllocated = numColors; 176 XFreeColors(display, cmap, pr, numColors, 0); 178 numColors = (nAllocated + nFailed) / 2; 182 nFailed = numColors; 184 numColors 193 AllocColors(Display * display, Screen * screen, int numColors, unsigned long *pr) argument 203 FreeColors(Display * display, Screen * screen, int numColors, unsigned long *pr) argument 454 int numColors; local [all...] |
/openjdk7/jdk/src/windows/native/sun/awt/splashscreen/ |
H A D | splashscreen_sys.c | 141 unsigned numColors = splash->screenFormat.colorMap ? local 142 splash->screenFormat.numColors : 0; 151 sizeof(RGBQUAD), numColors); 158 splash->screenFormat.colorMap, sizeof(RGBQUAD) * numColors); 167 pBmi->bV4ClrUsed = numColors; 168 pBmi->bV4ClrImportant = numColors; 179 sizeof(LOGPALETTE), sizeof(PALETTEENTRY), numColors); 185 pLogPal->palNumEntries = (WORD) numColors; 186 for (i = 0; i < numColors; i++) { 456 int numColors local [all...] |
/openjdk7/jdk/src/share/classes/java/awt/image/ |
H A D | PackedColorModel.java | 420 int numColors = colorMaskArray.length; 422 int[] arr = new int[numColors+numAlpha]; 423 for (int i=0; i < numColors; i++) { 432 arr[numColors] = countBits(alphaMask); 433 if (arr[numColors] < 0) {
|
/openjdk7/jdk/src/share/classes/javax/swing/colorchooser/ |
H A D | DefaultSwatchChooserPanel.java | 450 int numColors = numSwatches.width * numSwatches.height; 452 colors = new Color[numColors]; 453 for (int i = 0; i < numColors ; i++) { 478 int numColors = rawValues.length / 3; 480 colors = new Color[numColors]; 481 for (int i = 0; i < numColors ; i++) {
|
/openjdk7/jdk/test/java/awt/MultipleGradientPaint/ |
H A D | MultiGradientTest.java | 99 private int numColors; field in class:MultiGradientTest 105 numColors = COLORS.length; 243 Color[] colors = Arrays.copyOf(COLORS, numColors); 339 numColors = ((Integer)spinNumColors.getValue()).intValue();
|
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ |
H A D | RenderTests.java | 341 private Color[] makeGradientColors(int numColors, boolean alpha) { argument 344 Color[] ret = new Color[numColors]; 345 for (int i = 0; i < numColors; i++) { 351 private LinearGradientPaint makeLinear(int numColors, boolean alpha) { argument 352 float interval = 1.0f / (numColors - 1); 353 float[] fractions = new float[numColors]; 357 Color[] colors = makeGradientColors(numColors, alpha); 364 private RadialGradientPaint makeRadial(int numColors, boolean alpha) { argument 365 float interval = 1.0f / (numColors - 1); 366 float[] fractions = new float[numColors]; [all...] |
/openjdk7/jdk/src/share/native/sun/awt/medialib/ |
H A D | awt_ImagingLib.c | 150 colorMatch(int r, int g, int b, int a, unsigned char *argb, int numColors); 4012 colorMatch(int r, int g, int b, int a, unsigned char *argb, int numColors) { argument 4024 for (i = 0 ; i < numColors ; i++, argb+=4) { 4044 for (i = 0 ; i < numColors ; i++, argb+=4) {
|