You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Mikko Honkala <Mi...@iki.fi> on 2000/11/13 11:27:23 UTC

AWTRenderer: image size

Hi!

Images in AWTRenderer seem to get rendered to half of their size (if the
size is fetched from the image file).

Is this the correct way to fix the problem:

org.apache.fop.fo.flow.ExternalGraphic.layout() :

// The original: sizes were divided by 2
//width = (int) ((imgWidth * 1000d) / 2d);
//height = (int) ((imgHeight * 1000d) / 2d);

// Changed:
width = (int) ((imgWidth * 1000d));
height = (int) ((imgHeight * 1000d));



- Mikko.Honkala@iki.fi - 050-570 4 102 -  http://www.iki.fi/honkkis/