Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Reinterpreting an Image from const char* data[] and unsigned int [solved]

$
0
0

@kkkkkkkk wrote:

I receive some Images from a database that returns them as:

const unsigned char* buffer[];
unsigned int saved_size;

The images are png 320x240; RGB

and the size that is returned is 105791

I am trying to make them back into an ofImage;

The images are uploaded to the database after saving them with standard ofSaveImage()

ofSaveImage(vidGrab->getPixels(), ofToDataPath(project_directories.GENERAL_SETTINGS+"/GRAB.png"));

is it possible to turn it back into an image?

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles