pixman/demos/gtk-utils.h
Søren Sandmann Pedersen 7f5bb22d17 demos/gtk-utils.[ch]: Add pixman_image_from_file()
This function uses GdkPixbuf to load various common formats such as
.png and .jpg into a pixman image.
2012-12-08 10:50:51 -05:00

16 lines
411 B
C

#include <stdio.h>
#include <stdlib.h>
#include <glib.h>
#include <gtk/gtk.h>
#include "pixman.h"
void show_image (pixman_image_t *image);
pixman_image_t *
pixman_image_from_file (const char *filename, pixman_format_code_t format);
GdkPixbuf *pixbuf_from_argb32 (uint32_t *bits,
int width,
int height,
int stride);