On Wed, 12 Jul 2000, Michael D. Pritchett wrote:
> Thanks for this snipet. It works in inserting pictures. My preview dialog
> is broken with SVG due to the UT_SVG_Dimension returns strings for width and
> height and I need pixel width and height. So until those strings are
> converted - the ability to preview SVG - even just the green diamond is
> broken in my preview dialog.
That's because the width/height on a SVG image is in a CSS unit (ie.
inches, centimeters, twips, etc). I return a string from that function,
because it doesn't know how to turn inches into pixels. I could probably
expand it to take an optional screen DPI, and do the conversion for you.
Justin