Java Tutorial - Image rotation

preview_player
Показать описание
Video tutorial on how to rotate image by 180 and 90 degrees (both left and right) using Java.
Рекомендации по теме
Комментарии
Автор

Perfect!
Thank you a lot!
Exactly this what i was looking for :)

igorbarbosa
Автор

for (int row = 0; row < theImage.getHeight(); row++) {
for (int col = 0; col < theImage.getWidth()/2 ; col++) {
//
//
//
Pixel temp = data[row][col];
data[row][col] = data[row][theImage.getWidth() - 1-row];
- 1-row] = temp;
}}
theImage.setData(data);

Hello Zoran, Do you know where I have my code written wrong? it's rotating right 90 degrees.
I tried to follow ur code but i got so confused

kaukiaa
visit shbcf.ru