Re: create a pixmap from raw RGB buffer
- From: zaheer ahmad <zaheer mot gmail com>
- To: richard boaz <ivor boaz gmail com>
- Cc: gtk-list gnome org
- Subject: Re: create a pixmap from raw RGB buffer
- Date: Fri, 19 Feb 2010 16:01:55 +0530
hi richard,
Thanks for your reply.
I failed to mention that the RGB is a 16 bit per pixel data so if i have to use cairo surface, i need to convert it to 32 bit (both 24,32) which is costly. I already have this working solution, but i would like to avoid the conversion..
at this point neither cairo/gdk(pixmap,pixbuf) seem to have this.. iam inclined to use a XPixmap/XPutImage and convert to pixmap..or if there is a way with cairo xlib surface..
thanks,
Zaheer
On Fri, Feb 19, 2010 at 12:39 PM, richard boaz
<ivor boaz gmail com> wrote:
hi,
you should be using cairo to do this if you're not already.
see here for a little discussion on your problem:
cheers,
richard
hi,
I have a raw RGB data and would like to create a pixmap from it. i dont seem to find a relevant api for this. The ones that we tried gdk_pixmap_create_from_data seems to support only two colors and gdk_pixbuf_new_from_data has a max of 8 color depth..
Usecase: i have a plugin which gives raw RGB pixels and i would like to blend that on the browser window (convert RGB to pixmap -> gdk_set_source_pixmap on to browser cairo context).
Appreciate any help.
thanks,
Zaheer
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]