What does get() return?

Hey everyone,

I’m trying to figure out what does get() return when you use it with 4 arguments - as referred to at processing References.
Does it return a matrix of w*h dimension, while x and y is the position of the targeted pixel and w and h are around it? it’s a matrix how can one access these data?

Arguments w and h being arguments used in get(x, y, w, h)?

1 Like

If you read a bit more you’ll see that:

Returns	int or PImage

So if you specify a width and a height you get a PImage corresponding to the part of the original PImage where the top left pixel is at (x, y) position with a width of w and a height of h

1 Like

Thanx! That was actually super helpful… The last sentence should totally be included in the documentation!