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
Zaheer
On Fri, Feb 19, 2010 at 12:39 PM, richard boaz <ivor.boaz@xxxxxxxxx> 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,richardOn Fri, Feb 19, 2010 at 6:42 AM, zaheer ahmad <zaheer.mot@xxxxxxxxx> wrote:
_______________________________________________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@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list