I found this function here.
Code: Select all
function rotateImage(theImage)
newImage = Image.createEmpty(theImage:height(), theImage:width())
for x = 1, theImage:width() do
for y = 1, theImage:height() do
newImage:blit(y, x, theImage, x, y, 1, 1)
end
end
return newImage
end -- rotateImage
I do not understand this function.
The picture turns always 90 degrees.
How can I turn the picture differently?
For example 50 degrees.