diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-07-27 12:52:51 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-07-27 12:54:47 +0200 |
commit | c2081d28740e03d43b9dbbe9dbd5ac6484e8953a (patch) | |
tree | eb1c8ac0965fee0139ee58db131a142b2150b4c8 /src/image.hh | |
parent | 59b746f013f60050b91cb5f6f8dd4a96c47f380e (diff) |
Add SVG support for currentColor
The currentColor special value for the fill and stroke attributes allows
an image to follow the same foreground color of the surounding text.
Diffstat (limited to 'src/image.hh')
-rw-r--r-- | src/image.hh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/image.hh b/src/image.hh index a5057227..2dc87ecc 100644 --- a/src/image.hh +++ b/src/image.hh @@ -66,6 +66,7 @@ struct _DilloImage { float dpi; /**< Dots per inch */ int32_t bg_color; /**< Background color */ + int32_t fg_color; /**< Foreground color */ bitvec_t *BitVec; /**< Bit vector for decoded rows */ uint_t ScanNumber; /**< Current decoding scan */ ImageState State; /**< Processing status */ @@ -77,9 +78,10 @@ struct _DilloImage { /* * Function prototypes */ -DilloImage *a_Image_new(void *layout, void *img_rndr, int32_t bg_color); +DilloImage *a_Image_new(void *layout, void *img_rndr, + int32_t bg_color, int32_t fg_color); DilloImage *a_Image_new_with_dw(void *layout, const char *alt_text, - int32_t bg_color); + int32_t bg_color, int32_t fg_color); void *a_Image_get_dw(DilloImage *Image); void a_Image_ref(DilloImage *Image); void a_Image_unref(DilloImage *Image); |