From aefa03aed9333906dd0f3db794b79dcf41796729 Mon Sep 17 00:00:00 2001 From: Adrian Lees Date: Mon, 24 Mar 2008 01:35:13 +0000 Subject: Save non-opaque images with a proper mask/full alpha channel svn path=/trunk/netsurf/; revision=4047 --- image/bitmap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'image') diff --git a/image/bitmap.h b/image/bitmap.h index c4c132935..7ef1e9c93 100644 --- a/image/bitmap.h +++ b/image/bitmap.h @@ -39,6 +39,8 @@ #define BITMAP_SUSPENDED (1 << 4) /** currently suspended */ #define BITMAP_READY (1 << 5) /** fully initialised */ +#define BITMAP_SAVE_FULL_ALPHA (1 << 0) /** save with full alpha channel (if not opaque) */ + struct content; /** An opaque image. */ @@ -51,7 +53,7 @@ bool bitmap_get_opaque(struct bitmap *bitmap); char *bitmap_get_buffer(struct bitmap *bitmap); size_t bitmap_get_rowstride(struct bitmap *bitmap); void bitmap_destroy(struct bitmap *bitmap); -bool bitmap_save(struct bitmap *bitmap, const char *path); +bool bitmap_save(struct bitmap *bitmap, const char *path, unsigned flags); void bitmap_modified(struct bitmap *bitmap); void bitmap_set_suspendable(struct bitmap *bitmap, void *private_word, void (*invalidate)(struct bitmap *bitmap, void *private_word)); -- cgit v1.2.3