How do I remove aliasing from image rotation?
in
Programming Questions
•
7 months ago
When rotating an image (using PImage class), even with smooth() enabled, there is very visible aliasing. Is there any way around this? A rectangle drawn with rect() shows no aliasing. Here is an example picture and code:
PImage myImage;
void setup(){
size(640,640);
background(#AAAAAA);
smooth();
myImage = loadImage("Sh5_1684.jpg");
translate(width/2, height/2);
rotate(radians(40));
image(myImage, 0, 0);
}
Thanks for any help!
1