You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Hervé Girod <he...@club-internet.fr> on 2003/09/07 21:48:41 UTC

Improvements in wmf.tosvg package (2)

Sorry for this second message. I forgot one important thing in WMFPainter : of course the scale and origin must be taken in consideration, so we rather have :

    int rop = mr.ElementAt( 0 ).intValue();
    int height = (int)(scaleX * mr.ElementAt( 1 ).intValue());
    int width = (int)(scaleY * mr.ElementAt( 2 ).intValue());
    int left = (int)(scaleX * (vpX + mr.ElementAt( 3 ).intValue()));
    int top = (int)(scaleY * (vpY + mr.ElementAt( 4 ).intValue()));

as for all other operands.