pix buf and colormaps



Hi,

I have created a pix_buf from 8 bits data with the function
create_from_data (const guint8* data, Colorspace 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


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