Hello,
I'm kinda new to Processing, used it for some small programs, but I want to make a program now where I can upload a picture and rotate it in different ways.
- without interpolation
- Nearest Neighbor interpolation
- Bilineare interpolation
So far I got this:
PImage b;
int my;
int mx;
int[] pixels;
PImage online;
void setup() {
b = loadImage("http://weblog.marcovonk.nl/wp-files/2007/06/iets_raars_in_je_mailbox.jpg");
size(b.width*2,b.height);
my = b.height/2;
mx = b.width/2;
image(b, 0, 0);
pixels = new color[b.width*b.height];
for(int i = 0; i < b.height; i++) {
for(int j = 0; j < b.width; j++) {
loadPixels();
color cp = get(x,y);
pixels[i*j] = cp;
}
}
image(cp, b.width, 0);
}
but i'm getting the error: the field component.x is not visible.
could someone help me with this error? and if you have an idea to be able to rotate a picture pls share it, cause it will help me alot

thnx
Bubbie.