Chrissirhc
Programmer
getDataElements
public Object getDataElements(int x,
int y,
int w,
int h,
Object outData)
I don't get this method it is raster class and is meant to return the pixel data of an image but when I try to use it I get exceptions and basically don't understand what kind of object I should passing at the end of the method and what kind of object I should be saying it should be.
bad wording sorry; eg. should it be Integer myInts = (Integer)myRaster.getDataElements(0, 0, 100, 100, myInts)
Or
Object myInts = myRaster.getDataElements(0, 0, 100, 100, null) etc etc
I do not understand this method at all. I can use other methods to get an array from the image but this is meant to be more efficient can anyone help?
public Object getDataElements(int x,
int y,
int w,
int h,
Object outData)
I don't get this method it is raster class and is meant to return the pixel data of an image but when I try to use it I get exceptions and basically don't understand what kind of object I should passing at the end of the method and what kind of object I should be saying it should be.
bad wording sorry; eg. should it be Integer myInts = (Integer)myRaster.getDataElements(0, 0, 100, 100, myInts)
Or
Object myInts = myRaster.getDataElements(0, 0, 100, 100, null) etc etc
I do not understand this method at all. I can use other methods to get an array from the image but this is meant to be more efficient can anyone help?