summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTimothy Lee <timothy.lee@siriushk.com>2008-02-18 20:56:35 +0100
committerAlbert Astals Cid <aacid@kde.org>2008-02-18 20:56:35 +0100
commit7f4acb879d300e18dfaff768027c88195d7d8f1b (patch)
treed2ced609c13c540e780ef850c0250613a668a6e7 /utils
parent064b316648e35416bb49336639da1d8d288d1ecf (diff)
Implement ImageOutputDev::drawMaskedImage and ImageOutputDev::drawSoftMaskedImage so all images are exported when using pdfimages
Diffstat (limited to 'utils')
-rw-r--r--utils/ImageOutputDev.cc19
-rw-r--r--utils/ImageOutputDev.h11
2 files changed, 30 insertions, 0 deletions
diff --git a/utils/ImageOutputDev.cc b/utils/ImageOutputDev.cc
index 8aea9e71..a6af146c 100644
--- a/utils/ImageOutputDev.cc
+++ b/utils/ImageOutputDev.cc
@@ -195,3 +195,22 @@ void ImageOutputDev::drawImage(GfxState *state, Object *ref, Stream *str,
fclose(f);
}
}
+
+void ImageOutputDev::drawMaskedImage(
+ GfxState *state, Object *ref, Stream *str,
+ int width, int height, GfxImageColorMap *colorMap,
+ Stream *maskStr, int maskWidth, int maskHeight, GBool maskInvert) {
+ drawImage(state, ref, str, width, height, colorMap, NULL, gFalse);
+ drawImageMask(state, ref, maskStr, maskWidth, maskHeight,
+ maskInvert, gFalse);
+}
+
+void ImageOutputDev::drawSoftMaskedImage(
+ GfxState *state, Object *ref, Stream *str,
+ int width, int height, GfxImageColorMap *colorMap,
+ Stream *maskStr, int maskWidth, int maskHeight,
+ GfxImageColorMap *maskColorMap) {
+ drawImage(state, ref, str, width, height, colorMap, NULL, gFalse);
+ drawImage(state, ref, maskStr, maskWidth, maskHeight,
+ maskColorMap, NULL, gFalse);
+}
diff --git a/utils/ImageOutputDev.h b/utils/ImageOutputDev.h
index 7583860b..56c97a5f 100644
--- a/utils/ImageOutputDev.h
+++ b/utils/ImageOutputDev.h
@@ -63,6 +63,17 @@ public:
virtual void drawImage(GfxState *state, Object *ref, Stream *str,
int width, int height, GfxImageColorMap *colorMap,
int *maskColors, GBool inlineImg);
+ virtual void drawMaskedImage(GfxState *state, Object *ref, Stream *str,
+ int width, int height,
+ GfxImageColorMap *colorMap,
+ Stream *maskStr, int maskWidth, int maskHeight,
+ GBool maskInvert);
+ virtual void drawSoftMaskedImage(GfxState *state, Object *ref, Stream *str,
+ int width, int height,
+ GfxImageColorMap *colorMap,
+ Stream *maskStr,
+ int maskWidth, int maskHeight,
+ GfxImageColorMap *maskColorMap);
private: