> > Is it possible for the batik PNG/bitmap rasteriser to inform the 
> > user/calling
> > code if it encounters a line that is subpixel in width and so would not
> > render - i.e. not appear? That is, will be omitted, missed out in the
> > resultant PNG image because it is too thin?
> > Does this feature already exist?

Have you taken a look at the non scaling stroke property [1] of SVG
1.2? This may help you achieve the desired behavior, independently of
the rasterizer tricks described within this thread. ;-)

Unfortunately, I've just checked that Batik currently (using the trunk
version) doesn't appear to support it -- backed up by the SVG 1.2
status page [2] also, where this isn't stated anywhere... :-|


> OpenCV could be used to compare low resolution renders of an SVG against a
> high resolution render of an SVG. Tolerances could be fine tuned and applied
> so that irrelevant errors and differences are ignored and reports of missing
> lines are the things that the user gets to know about.

Have you taken a look into Batik's regard (test infrastructure) [3]?
With a few (potential) modifications, it could be used to accomplish
this purpose also: using a different resolution (probably a much
higher one) for comparison could help catching cases like the ones
being described in this thread...


Hope this helps,

 Helder Magalhães


[1] http://www.w3.org/TR/SVGTiny12/painting.html#NonScalingStroke
[2] http://xmlgraphics.apache.org/batik/dev/svg12.html
[3] http://xmlgraphics.apache.org/batik/dev/test.html#regard

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to