I get an error "Cannot initialize a parameter of type "const unsigned char *" with an rvalue of type 'value_type ' (aka char)" in the following lines.
image->initWithImageData(&(buffer->front()),buffer->size());
buffer is of type std::vector<char> *buffer
and the above error in on &(buffer->front()
does anybody know how to fix it?
unsigned char*
andchar*
are 2 different types. could you changebuffer
tostd::vector<unsigned char> *buffer
– Jarod42