
25 Mar
2009
25 Mar
'09
9:42 p.m.
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.