Chrissirhc
Programmer
public void rotateImage(double theta)
{
System.out.println("********1*******"
;
imageGraphics.rotate(theta*RADCONVERTOR); //This should be in radians.
System.out.println("********2*******"
;
myWritableRaster = (WritableRaster)imageInfo.getData();
System.out.println("********3*******"
;
int transferType = myWritableRaster.getTransferType();
int numOfElements = myWritableRaster.getNumDataElements();
System.out.println("********4*******"
;
height = imageInfo.getHeight();
width = imageInfo.getWidth();
System.out.println("********5*******"
;
imageArray = new byte[width*height*numOfElements];
System.out.println("********6*******"
;
myWritableRaster.getDataElements(0,0, width, height, imageArray);
System.out.println("********7*******"
;
changeArrayToTwo();
System.out.println("********8*******"
;
threshold();
}
A buffered image has been drawn onto the imageGraphics object previously.
It compiles it runs but it doesn't rotate the image.
Thanks if anyone reads or if anyone can help
Chris
{
System.out.println("********1*******"
imageGraphics.rotate(theta*RADCONVERTOR); //This should be in radians.
System.out.println("********2*******"
myWritableRaster = (WritableRaster)imageInfo.getData();
System.out.println("********3*******"
int transferType = myWritableRaster.getTransferType();
int numOfElements = myWritableRaster.getNumDataElements();
System.out.println("********4*******"
height = imageInfo.getHeight();
width = imageInfo.getWidth();
System.out.println("********5*******"
imageArray = new byte[width*height*numOfElements];
System.out.println("********6*******"
myWritableRaster.getDataElements(0,0, width, height, imageArray);
System.out.println("********7*******"
changeArrayToTwo();
System.out.println("********8*******"
threshold();
}
A buffered image has been drawn onto the imageGraphics object previously.
It compiles it runs but it doesn't rotate the image.
Thanks if anyone reads or if anyone can help
Chris