18 #ifdef HAVE_PANGOCAIRO
19 #include <gdk-pixbuf/gdk-pixbuf.h>
33 argb2rgba (
unsigned int width,
unsigned int height,
char *
data)
48 for (y = 0; y < height; y++) {
49 for (x = 0; x < width; x++) {
51 unsigned char r = data[Ra];
60 writer (
const gchar *buf, gsize count, GError **error, gpointer data)
67 static void gdk_format(
GVJ_t * job)
69 char *format_str =
"";
92 pixbuf = gdk_pixbuf_new_from_data(
104 gdk_pixbuf_save_to_callback(pixbuf, writer, job, format_str,
NULL,
NULL);
106 #if HAVE_G_OBJECT_UNREF
107 g_object_unref(pixbuf);
109 gdk_pixbuf_unref(pixbuf);
129 #ifdef HAVE_PANGOCAIRO
130 {FORMAT_BMP,
"bmp:cairo", 6, &gdk_engine, &device_features_gdk},
131 {FORMAT_ICO,
"ico:cairo", 6, &gdk_engine, &device_features_gdk},
132 {
FORMAT_JPEG,
"jpe:cairo", 6, &gdk_engine, &device_features_gdk},
133 {
FORMAT_JPEG,
"jpeg:cairo", 6, &gdk_engine, &device_features_gdk},
134 {
FORMAT_JPEG,
"jpg:cairo", 6, &gdk_engine, &device_features_gdk},
135 {
FORMAT_PNG,
"png:cairo", 6, &gdk_engine, &device_features_gdk},
136 {FORMAT_TIFF,
"tif:cairo", 6, &gdk_engine, &device_features_gdk},
137 {FORMAT_TIFF,
"tiff:cairo", 6, &gdk_engine, &device_features_gdk},
#define GVDEVICE_BINARY_FORMAT
gvplugin_installed_t gvdevice_gdk_types[]
gvplugin_active_device_t device
size_t gvwrite(GVJ_t *job, const char *s, size_t len)
#define GVDEVICE_DOES_TRUECOLOR