micahpearlman/MonkSVG — pull request #5 by lukelutman (2012-05-30 13:57:04+00:00)
Title: Updated SVG parser to read image dimensions from the svg file

There were already variables for minX, minY, width and height in the SVGHandler, but the parser never set them. I updated the parser to read them from the svg file and set them :-)

Right now, it ignores the dimensions that are specified with units other than pixels. I'm not sure how to support other units (cm, in, etc.) without device specific information. Maybe just adding variables to specify which units the variables are in (i.e. _minXUnits) and an enum for which units are supported? Then the user can figure out how to convert the values into pixels (or whatever units they want)?