From e26a2c26ede734978224294f7f77fd7f067eda53 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 27 Feb 2018 18:36:07 +0100 Subject: Add annotation opacity accessor. --- include/mupdf/pdf/annot.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/mupdf/pdf/annot.h b/include/mupdf/pdf/annot.h index 2dd47f27..c29b6c31 100644 --- a/include/mupdf/pdf/annot.h +++ b/include/mupdf/pdf/annot.h @@ -155,6 +155,7 @@ int pdf_annot_has_author(fz_context *ctx, pdf_annot *annot); int pdf_annot_flags(fz_context *ctx, pdf_annot *annot); void pdf_annot_rect(fz_context *ctx, pdf_annot *annot, fz_rect *rect); float pdf_annot_border(fz_context *ctx, pdf_annot *annot); +float pdf_annot_opacity(fz_context *ctx, pdf_annot *annot); void pdf_annot_color(fz_context *ctx, pdf_annot *annot, int *n, float color[4]); void pdf_annot_interior_color(fz_context *ctx, pdf_annot *annot, int *n, float color[4]); @@ -168,6 +169,7 @@ fz_point pdf_annot_ink_list_stroke_vertex(fz_context *ctx, pdf_annot *annot, int void pdf_set_annot_flags(fz_context *ctx, pdf_annot *annot, int flags); void pdf_set_annot_rect(fz_context *ctx, pdf_annot *annot, const fz_rect *rect); void pdf_set_annot_border(fz_context *ctx, pdf_annot *annot, float width); +void pdf_set_annot_opacity(fz_context *ctx, pdf_annot *annot, float opacity); void pdf_set_annot_color(fz_context *ctx, pdf_annot *annot, int n, const float color[4]); void pdf_set_annot_interior_color(fz_context *ctx, pdf_annot *annot, int n, const float color[4]); -- cgit v1.2.3