I need a void pointer to an image’s bitmap to pass to WINGDIAPI function WINAPI GetDIBits( )
In of_v0.9.3-vs_release I could code like this
ofImage image;
const void* pixelPtr;
pixelPtr = (const void*) image.getPixels();
It built and ran and my app worked fine.
Now when I try and build the same app in of_v0.9.8_vs_release I get this error
Error no suitable conversion function from “ofPixels_” to “void *” exists
I tried changing the pixelPtr type to unsigned char but I just get
Error no suitable conversion function from “ofPixels_” to “unsigned char *” exists
I think it may be something to do with the definition of ofPixels in 9.8, int has been changed to size_t everywhere.
I am doing a 32 bit build, but its no different for a 64 bit build.
Is there some way that I can get the pointer I need?
Thanks for any help
- Richard