How do get monochrome pixel(1bpp) data from pixmap in GTK2 with linux?



Hello,

Source:

 GdkPixmap* m_pixmap;
 m_pixmap = gdk_pixmap_new(wxGetRootWindow()->window, m_width, m_height, 1/*monochrome*/);

gdk_pixbuf_get_pixels() does not supported by 1bpp. How to get the raw pixel(1bpp)data from pixmap? Is there any possible ways to do this?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]