[gs-cvs] rev 8852 - trunk/ghostpdl/xps
tor at ghostscript.com
tor at ghostscript.com
Fri Jul 18 06:59:06 PDT 2008
Author: tor
Date: 2008-07-18 06:59:05 -0700 (Fri, 18 Jul 2008)
New Revision: 8852
Modified:
trunk/ghostpdl/xps/xpsimage.c
Log:
Always turn on image interpolation for XPS, as required by the specification.
Modified: trunk/ghostpdl/xps/xpsimage.c
===================================================================
--- trunk/ghostpdl/xps/xpsimage.c 2008-07-17 20:11:52 UTC (rev 8851)
+++ trunk/ghostpdl/xps/xpsimage.c 2008-07-18 13:59:05 UTC (rev 8852)
@@ -186,6 +186,7 @@
used = 0;
}
+ memset(&gsimage, 0, sizeof(gsimage));
gs_image_t_init(&gsimage, colorspace);
gsimage.ColorSpace = colorspace;
gsimage.BitsPerComponent = image->bits;
@@ -195,6 +196,8 @@
gsimage.ImageMatrix.xx = image->xres / 96.0;
gsimage.ImageMatrix.yy = image->yres / 96.0;
+ gsimage.Interpolate = 1;
+
penum = gs_image_enum_alloc(ctx->memory, "xps_parse_image_brush (gs_image_enum_alloc)");
if (!penum)
return gs_throw(-1, "gs_enum_allocate failed");
More information about the gs-cvs
mailing list