xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Bernardo <lmpmberna...@gmail.com>
Subject Re: SVG pixel size
Date Mon, 08 Jul 2013 21:40:49 GMT

Pixel is only for monitors. If you want a 1 pixel line you don't need to 
care about dpi. That only matters if you want to print. When you print a 
pixel becomes a dot.

Attached is an example with a 1 pixel thick line. Of course, the 
thickness you see in the monitor depends on the zoom you use. If you 
open the image with Gimp and zoom in to 1600% you will see that the line 
thickness corresponds, on the left scale, to 1 pixel.

Maybe you can clarify your question?

On 7/8/13 10:10 AM, Massimo wrote:
> Hi all.
> I am producing a PNG file and I'm using an xsl with SVG element like this:
> <fo:instream-foreign-object>
>    <svg:svg xmlns:svg="http://www.w3.org/2000/svg" width="100%"
> height="100%">
>      <svg:line x1="15" y1="15" x2="25" y2="15"/>
>      <svg:line x1="15" y1="16" x2="25" y2="16"/>
>    </svg:svg>
> </fo:instream-foreign-object>
> I need to draw 1 pixel thin lines.
> I set the target resolution to 203dpi and I noticed that the pixel of the
> lines is scaled (bigger) according the resolution (~3px thin).
> Is there any way to control the svg pixel size via program or configuration
> leaving  the resolution to 203dpi?
> Thanks.
> --
> View this message in context: http://apache-fop.1065347.n5.nabble.com/SVG-pixel-size-tp38853.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message