H
harryos
hi all,
i have some code that reads a greyscale image and stores the pixeldata
as a double[][].This double[][] is later on passed to another program
that recreates the image.
when i checked the documentation i found that there is a method to
create BufferedImage from given int[] like
setRGB(int startX, int startY, int w, int h, int[] rgbArray, int
offset, int scansize)
suppose i rearrange the pixel values of the greyscale image as a
double[] ,is there a similar method to construct a greyscale image out
of it?I do not keep any reference to the original image other than the
array of doubles.So i can't figure out how to create a WritableRaster
on which i can set the pixels.Can someone help?
harry
i have some code that reads a greyscale image and stores the pixeldata
as a double[][].This double[][] is later on passed to another program
that recreates the image.
when i checked the documentation i found that there is a method to
create BufferedImage from given int[] like
setRGB(int startX, int startY, int w, int h, int[] rgbArray, int
offset, int scansize)
suppose i rearrange the pixel values of the greyscale image as a
double[] ,is there a similar method to construct a greyscale image out
of it?I do not keep any reference to the original image other than the
array of doubles.So i can't figure out how to create a WritableRaster
on which i can set the pixels.Can someone help?
harry