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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Gtk+ - General mailing list
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?

_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list