1
Graphics / Help with getpixelptr()
« on: June 10, 2014, 07:20:43 am »
Hi I am having a hard time setting up my pixel pointer to an array where I can modify pixels and eventually use the create function to display back to the window.
I understand the first part in the documentation where I wrote this:
I also understand that it's going to return the values in groups of 4.
So how would I turn this into an array I can modify? Any help is greatly appreciated thanks in advance.
I understand the first part in the documentation where I wrote this:
const Uint8* pixels = myImage.getPixelsPtr();
I also understand that it's going to return the values in groups of 4.
So how would I turn this into an array I can modify? Any help is greatly appreciated thanks in advance.