
25 Mar
2009
25 Mar
'09
11:08 p.m.
An important note: Using \n in a PPM file under windows, if in text mode, will give you problems because the LF will be interpreted as pixel data. 2009/3/25 Tom Brinkman <reportbase@gmail.com>:
int width = 200; int height = 200; rgb8_image_t img(width,height); unsigned char* buffer = interleaved_view_get_raw_data(view(img));
FILE* fd = fopen(path,"wb"); fprintf(fd, "P6\n# CREATOR: unknown\n%d %d\n255\n",width,height); fwrite(buffer,1,width*height*3,fd); fclose(fd);
GIL is just a wrapper around your buffer. No direct serialization support is provided nor needed. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost