开发平台(Platform): (Ex: VC++, GCC, Linux, ...)
gcc, c++, linux
额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
Gtk+-2.0, X11
问题(Question):
我有一支第三方rend图的函式库,出来的结果是XPixmap,
但接下来需要用到gdk-pixbuf重新scale图的大小,
找了一下好像没有相关联的Api可以直接从xPixmap直接转成gdk_pixbuf
接近的api似乎是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);
可以请有经验的朋友稍微讲解一下从pixmap转成buf的个字段该怎么填吗?