Commit 680f20df authored by Kristian Høgsberg's avatar Kristian Høgsberg

2006-05-22 Kristian Høgsberg <krh@redhat.com>

	Patch from Rainer Keller to fix the ImageOutputDev (#6984).

	* utils/ImageOutputDev.cc (drawImage): Upate to work with new
	16-bit color representation.

	* utils/ImageOutputDev.h: Return gTrue for needNonText().
parent e43a06bf
2006-05-22 Kristian Høgsberg <krh@redhat.com>
Patch from Rainer Keller to fix the ImageOutputDev (#6984).
* utils/ImageOutputDev.cc (drawImage): Upate to work with new
16-bit color representation.
* utils/ImageOutputDev.h: Return gTrue for needNonText().
2006-05-21 Kristian Høgsberg <krh@redhat.com>
* poppler/CairoFontEngine.cc:
......
Release 0.5.2
-
Release 0.5.1
- Support for embedded files.
......
......@@ -184,9 +184,9 @@ void ImageOutputDev::drawImage(GfxState *state, Object *ref, Stream *str,
p = imgStr->getLine();
for (x = 0; x < width; ++x) {
colorMap->getRGB(p, &rgb);
fputc((int)(rgb.r * 255 + 0.5), f);
fputc((int)(rgb.g * 255 + 0.5), f);
fputc((int)(rgb.b * 255 + 0.5), f);
fputc(colToByte(rgb.r), f);
fputc(colToByte(rgb.g), f);
fputc(colToByte(rgb.b), f);
p += colorMap->getNumPixelComps();
}
}
......
......@@ -45,7 +45,7 @@ public:
virtual GBool interpretType3Chars() { return gFalse; }
// Does this device need non-text content?
virtual GBool needNonText() { return gFalse; }
virtual GBool needNonText() { return gTrue; }
//---- get info about output device
......
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