@Test public void createConstantImage2() { Dimension defTileSize = JAI.getDefaultTileSize(); int tileW = defTileSize.width / 2; int tileH = defTileSize.height / 2; int w = (int) (tileW * 2.5); int h = (int) (tileH * 2.5); int minx = -10; int miny = 10; Double[] values = {0.0, 1.0, 2.0}; TiledImage img = ImageUtils.createConstantImage(minx, miny, w, h, tileW, tileH, values); assertNotNull(img); assertEquals(minx, img.getMinX()); assertEquals(miny, img.getMinY()); assertEquals(w, img.getWidth()); assertEquals(h, img.getHeight()); assertEquals(tileW, img.getTileWidth()); assertEquals(tileH, img.getTileHeight()); for (int band = 0; band < 3; band++) { for (int y = miny, ny = 0; ny < h; y++, ny++) { for (int x = minx, nx = 0; nx < w; x++, nx++) { assertEquals(band, img.getSample(x, y, band)); } } } }
public static TiledImage createConstantImage(int width, int height, Number value) { return createConstantImage(width, height, new Number[] {value}); }
ImageUtils { public static TiledImage createConstantImage(int width, int height, Number value) { return createConstantImage(width, height, new Number[] {value}); } }
ImageUtils { public static TiledImage createConstantImage(int width, int height, Number value) { return createConstantImage(width, height, new Number[] {value}); }  }
ImageUtils { public static TiledImage createConstantImage(int width, int height, Number value) { return createConstantImage(width, height, new Number[] {value}); }  static TiledImage createConstantImage(int width, int height, Number value); static TiledImage createConstantImage(int minx, int miny, int width, int height, Number value); static TiledImage createConstantImage(int width, int height, Number[] values); static TiledImage createConstantImage(int minx, int miny, int width, int height, Number[] values); static TiledImage createConstantImage(int minx, int miny, int width, int height,
            int tileWidth, int tileHeight, Number[] values); static TiledImage createImageFromArray(Number[] array, int width, int height); static Color[] createRampColours(int numColours); static Color[] createRampColours(int numColours, float saturation, float brightness); static Color[] createRampColours(int numColours, float startHue, float endHue,
            float saturation, float brightness); static RenderedImage createDisplayImage(RenderedImage dataImg, Map<Integer, Color> colourTable); static List<RenderedImage> getBandsAsImages(RenderedImage img); static List<RenderedImage> getBandsAsImages(RenderedImage img, Collection<Integer> bandIndices); }
ImageUtils { public static TiledImage createConstantImage(int width, int height, Number value) { return createConstantImage(width, height, new Number[] {value}); }  static TiledImage createConstantImage(int width, int height, Number value); static TiledImage createConstantImage(int minx, int miny, int width, int height, Number value); static TiledImage createConstantImage(int width, int height, Number[] values); static TiledImage createConstantImage(int minx, int miny, int width, int height, Number[] values); static TiledImage createConstantImage(int minx, int miny, int width, int height,
            int tileWidth, int tileHeight, Number[] values); static TiledImage createImageFromArray(Number[] array, int width, int height); static Color[] createRampColours(int numColours); static Color[] createRampColours(int numColours, float saturation, float brightness); static Color[] createRampColours(int numColours, float startHue, float endHue,
            float saturation, float brightness); static RenderedImage createDisplayImage(RenderedImage dataImg, Map<Integer, Color> colourTable); static List<RenderedImage> getBandsAsImages(RenderedImage img); static List<RenderedImage> getBandsAsImages(RenderedImage img, Collection<Integer> bandIndices);  }