summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorAdrian Lees <adrian@aemulor.com>2008-03-24 01:35:13 +0000
committerAdrian Lees <adrian@aemulor.com>2008-03-24 01:35:13 +0000
commitaefa03aed9333906dd0f3db794b79dcf41796729 (patch)
treeba8b71617ad33ac9dd35a782b6d162cfe6590d4f /image
parent175395b52dcd9f1cbae2f27ef7066fda731083f4 (diff)
downloadnetsurf-aefa03aed9333906dd0f3db794b79dcf41796729.tar.gz
netsurf-aefa03aed9333906dd0f3db794b79dcf41796729.tar.bz2
Save non-opaque images with a proper mask/full alpha channel
svn path=/trunk/netsurf/; revision=4047
Diffstat (limited to 'image')
-rw-r--r--image/bitmap.h4
1 files changed, 3 insertions, 1 deletions
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));