summaryrefslogtreecommitdiff
path: root/fitz/fitz.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-01-18 18:34:01 +0000
committerRobin Watts <robin.watts@artifex.com>2012-01-19 12:40:25 +0000
commit08e84b18e5c1dbe8f3d32dd0aeb4b4c43debce9f (patch)
treef7c6994f4d23187ec021c848dbdaa34591531bfe /fitz/fitz.h
parent40f4ed22806b88ba0e26c458915d4695f1f7c201 (diff)
downloadmupdf-08e84b18e5c1dbe8f3d32dd0aeb4b4c43debce9f.tar.xz
Bitmap 'patch' scaling.
When scaling a bitmap, currently we always scale the entire bitmap, even if we only need a small section of the result. This patch changes the code to take an optional 'clip' bbox, and only scales as much of the input as as required for this output region.
Diffstat (limited to 'fitz/fitz.h')
-rw-r--r--fitz/fitz.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h
index 3971f24c..49db7dc2 100644
--- a/fitz/fitz.h
+++ b/fitz/fitz.h
@@ -953,7 +953,7 @@ void fz_invert_pixmap(fz_pixmap *pix);
void fz_gamma_pixmap(fz_pixmap *pix, float gamma);
unsigned int fz_pixmap_size(fz_pixmap *pix);
-fz_pixmap *fz_scale_pixmap(fz_context *ctx, fz_pixmap *src, float x, float y, float w, float h);
+fz_pixmap *fz_scale_pixmap(fz_context *ctx, fz_pixmap *src, float x, float y, float w, float h, fz_bbox *clip);
void fz_write_pnm(fz_context *ctx, fz_pixmap *pixmap, char *filename);
void fz_write_pam(fz_context *ctx, fz_pixmap *pixmap, char *filename, int savealpha);