I obtain a CF_DIB
from a clipboard and then call:
GdkPixbuf* pixbuf = gdk_pixbuf_new_from_data(info->bmiColors, GDK_COLORSPACE_RGB, TRUE, 8, info->bmiHeader.biWidth, info->bmiHeader.biHeight, rowstride, NULL, NULL);
to create a GdkPixbuf out of the pixel data. However the image appears to be flipped upside down and mirrored inverted (I think as it is BGR).
How do I create the pixbuf properly?