ImageData createRenderedImageDataObject(RenderedImage byRefImage) {  return createRenderedImageDataObject(byRefImage, width, height);
ImageData createRenderedImageDataObject(RenderedImage byRefImage, int dataWidth, int dataHeight) { switch(imageFormatType) { case TYPE_BYTE_GRAY: case TYPE_BYTE_LA: case TYPE_BYTE_RGB: case TYPE_BYTE_BGR: case TYPE_BYTE_RGBA: case TYPE_BYTE_ABGR: if(byRefImage != null) { return new ImageData(ImageDataType.TYPE_BYTE_ARRAY, dataWidth * dataHeight * depth * unitsPerPixel, dataWidth, dataHeight, byRefImage); } else { return new ImageData(ImageDataType.TYPE_BYTE_ARRAY, dataWidth * dataHeight * depth * unitsPerPixel, dataWidth, dataHeight); } case TYPE_INT_RGB: case TYPE_INT_BGR: case TYPE_INT_ARGB: if(byRefImage != null) { return new ImageData(ImageDataType.TYPE_INT_ARRAY, dataWidth * dataHeight * depth * unitsPerPixel, dataWidth, dataHeight, byRefImage); } else { return new ImageData(ImageDataType.TYPE_INT_ARRAY, dataWidth * dataHeight * depth * unitsPerPixel, dataWidth, dataHeight); } default: throw new AssertionError(); }
    ImageData createRenderedImageDataObject(RenderedImage byRefImage) {                return createRenderedImageDataObject(byRefImage, width, height);            }