انا اسف عالتأخير :)
لكن اعرفت الكود للتدوير :)
وهو كالتالي :
1-عرفي صورة معينة كالعادة
img_test=Image.createImage("/test.jpg");2- في paint method
g.drawRegion(img_test, 0, 0, img_test.getWidth, logo.getHeight(), 2, 20, 20,0)
فهذا الكود يقوم عكس الصورة كالمراة
اما الشكل العام للكود كالتالي
g.drawRegion(image_source, x_source, y_source, width, height2,transform, x_destination,y_destination,anchor_point)
اما قيم ال transform فهي
public static final int TRANS_MIRROR 2 public static final int TRANS_MIRROR_ROT180 1 public static final int TRANS_MIRROR_ROT270 4 public static final int TRANS_MIRROR_ROT90 7 public static final int TRANS_NONE 0 public static final int TRANS_ROT180 3 public static final int TRANS_ROT270 6 public static final int TRANS_ROT90 5
ارجو الافادة :)
