Hello CN1,
by using Image.rotate() function I get problem by reading the rotated image's size.
Image temp = image.rotate(90);
Log.p("image size: " + temp.getWidth() + "-" + temp.getHeight(), Log.DEBUG);
I have read an image file to Image object, which has size: 1800-1198.
Then I am using the code above to rotate this Image object, and what I am waiting for the result of image size is 1198-1800.
But I get the log:
[EDT] 0:0:16,41 - image size: 1800-1198
After rotate the Image object, the image size doesn't be updated.
Is it a bug, or what I have done wrong?
Tested on simulator.
Regards,
Pai