C 使用pixbuf显示像素缓冲区
我有一个像素值缓冲区。是否可以使用gtk中的pixbuf将该缓冲区显示为图像。我将使用c语言。是的,请查看函数:C 使用pixbuf显示像素缓冲区,c,gtk,C,Gtk,我有一个像素值缓冲区。是否可以使用gtk中的pixbuf将该缓冲区显示为图像。我将使用c语言。是的,请查看函数: gdk_pixbuf_new_from_data () GdkPixbuf * gdk_pixbuf_new_from_data (const guchar *data, GdkColorspace colorspace,
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);
(在中)谢谢您的回复…但该函数的定义是,它只能显示8位/像素…如果我们的每个像素超过8位会怎么样?我们有出路吗?