Quantcast
Viewing all articles
Browse latest Browse all 40524

Pixels, videoGrabbers, pointers and references

Hi Arturo,
First of all, thanks for answering these kind of C++ questions.
You are right, what I am storing has to be a pointer, since pixelsArray is define like an arrays of pointer. But if I am not wrong, that's a pointer to a reference, right?

I am afraid there is something I am not understanding correctly. Using code 1) allows me to access pixels like in an array, pixles[i]
But if I use what you are suggesting, there is no way to use pixels->[i], correct?

I don't want to take much of your time with this, I am afraid I am just trying to make things too complicated...

Edit: It worked the other way around:

ofPixels pixels = *pixelsArray[0];

Now, I can access to pixels[i]

Thanks for your help! - Now I have to figure out why it worked...


Viewing all articles
Browse latest Browse all 40524

Trending Articles