Commit 7f4acb87 authored by Timothy Lee's avatar Timothy Lee Committed by Albert Astals Cid

Implement ImageOutputDev::drawMaskedImage and...

Implement ImageOutputDev::drawMaskedImage and ImageOutputDev::drawSoftMaskedImage so all images are exported when using pdfimages
parent 064b3166
......@@ -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);
}
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment