ofPixelsfile
ofPixels is an object for working with blocks of pixels, those pixels can be copied from an image that you've loaded, something that you've drawn using ofGraphics, or a ofVideoGrabber instance.
You can create an image from pixels, using on ofPixels object like so:
ofPixels represents pixels data on the CPU as opposed to an ofTexture which represents pixel data on the GPU. They can easily be made inter- operational though:
You can access the pixels in an ofPixels object with the []
operator.
You can think of the ofPixels as the CPU side representation of pixel data that can be sent to the GPU as an ofTexture object. To draw pixels, you need to put them into an ofTexture and to manipulate an ofTextures pixel data you need an ofPixels object.
Enums
Typedefs
ofPixels_class
template<typename PixelType>
class ofPixels_< PixelType >
A class representing a collection of pixels.