home *** CD-ROM | disk | FTP | other *** search
- ' Use WMF Export to get better detail in your metatiles.
- ' You can control the scale of your WMF export using Sys(25) as this
- ' program illustrates. Sys(25) roughly determines how many metafile
- ' units (I'll call them "mfu") per drawing unit to place in the exported
- ' WMF file.
- '
- ' One mfu is about 1/6 of a pixel, so at 96dpi (typical for most
- ' screen resolutions), 1 mfu is 1/576 of a screen "inch".
- '
- ' Run this macro before exporting to WMF.
- '
- pix = sys(25)
- if pix = 0.0 then pix = 67
- Message "Current drawing units per inch: ", 576/pix
-
- Input "Desired drawing units per inch: ", scale
- if (sys(999)) then End
-
- if scale <= 0.0 then
- sys(25) = 0
- scale = 576/67
- else
- sys(25) = 576/scale
- end if
-
- m$ = "Scale is now ", 576/sys(25), ". A 10-unit line will be ", 10/scale, "inches long."
- Message m$
- ' "Scale is now ", 576/sys(25), ". A 10 unit line will be ", 10/scale, " inches long."
- End
-
-