mirror of
https://salsa.debian.org/xorg-team/lib/pixman
synced 2025-09-01 10:35:16 +00:00

This function uses GdkPixbuf to load various common formats such as .png and .jpg into a pixman image.
16 lines
411 B
C
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);
|