2010-09-27 20 views

回答

1

是的,看看功能:

gdk_pixbuf_new_from_data() 

GdkPixbuf *   gdk_pixbuf_new_from_data   (const guchar *data, 
                 GdkColorspace colorspace, 
                 gboolean has_alpha, 
                 int bits_per_sample, 
                 int width, 
                 int height, 
                 int rowstride, 
                 GdkPixbufDestroyNotify destroy_fn, 
                 gpointer destroy_fn_data); 

(在docs

+0

感謝您的回覆......但是這個函數的定義說,它可以顯示每個像素只有8位....如果我們每個像素的位數超過8位,該怎麼辦?我們有什麼出路嗎? – linuxnewbie 2010-09-27 17:44:00