Advertisement

Problem in rotating a PNG image

Started by April 12, 2004 06:43 AM
1 comment, last by rizwanahmed24 20 years, 7 months ago
hi everybody i am developing game for mobile i am having problem with PNG image, i have downloaded some images from net,if i rotate this image to some angle lets say 5 degree, it doesnt works , it throws and exception, if i rotate it to 180 degree it works well. WHY?? how i can i solve this problem of rotating image? bye
What is the exception? The pixels may be going out of bounds- try and think where each corner of the image is ending up once it has been rotated.
Advertisement
Exception is
java.lang.IllegalArgumentException

rotation of image changes the dimension of image, but if i rotate it to 180 degree then it works well (as the dimensions doesnt change)

why the change in dimension of PNG image throws an exception?


This topic is closed to new replies.

Advertisement