openframeworks/openFrameworks — Issue #925: ofImage has type as int, public vars, & missing getBPP, etc
Author: danomatika
Created: 2012-02-22 00:28:08+00:00
State: open

I noticed a few things when working with ofImage:

* ofImage has a type variable for the image type but this is an int, as opposed to the ofImageType enum, so it's annoying to force convert ...
* the width, height, & bpp variables are public, they should be protected with getters/setters
* there isn't a getBytesPerPixel, you have to get the pixel reference then call getBytesPerPixel ...