Search found 1 match

by danicb2
2012-04-27T00:43:37-07:00
Forum: Magick++
Topic: Problem writing B&W image data
Replies: 0
Views: 6370

Problem writing B&W image data

Hi, I'm trying to write the image data of an Image object into a char array. My code looks like the following: char* block = (char*)malloc(widthTV*heightTV); mgkim.write(0,0,widthTV,heightTV,"RGB",CharPixel,block); The problem is that my image is a 1-channel black & white image so the ...