XImage* getCorrectedImage(Pixmap p){ int buflen, i; XImage* img = XGetImage(g_display, g_tempPixmap, 0, 0, g_width, g_height, AllPlanes, ZPixmap); buflen = img->width * img->height * img->bitmap_pad / 8; for(i = 0; i < buflen; i++){ img->data[i] /= 2; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)