Hi,

I have created a pix_buf from 8 bits data with the function
create_from_data <http://developer.gnome.org/gtkmm/stable/classGdk_1_1Pixbuf.html#a8a3b524f26acd2f9efc4abe9c294d341> (const guint8* data, Colorspace <http://developer.gnome.org/gtkmm/stable/group__gdkmmEnums.html#ga866d716154abb7f5be26bd36b3017d3f> colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride).

It displays fine, but only in greyscale, so I must attach a colortable, which maps a 8 bits value to an RGB color and preferable to an RGBA color. What the best way to do this, I can't find much documentation.


Regards

Kees Kling
_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to