Loading...
Logo
Processing Forum

Imagen-rotate-Help

in Programming Questions  •  1 year ago  
hello, I'm doing, rotate an image, its center, and this is deformed. as I can that the image is sharp, like the original?

Copy code
  1. PImage img, recta;
    int ancho,alto;
    size(75,75,P3D);

      for(int s=0;s<26;s=s+1){
        img = loadImage("C:/Users/Naruto/Desktop/Arduino-led/rotate/images"+s+".jpg");
        pushMatrix();
     imageMode(CENTER);
    translate(width/2, height/2);
    rotate(PI/(60+s));
    image(img,0,0);

    popMatrix();
    int t=s+1;
    save("images"+t+".jpg");
    image(img,0,0);
      }

Replies(3)

they all look exactly the same for me when executing your code. 
Why do you have 26 different images in input?
What are the images you show? The images you load? The images you produced?