ReaderWmfMetafileUnits Property |
Namespace: Ab2d
MetafileUnits can be set to any value defined in MetafileUnits enum.
Drawings in metafiles are defined in device independent way. This means that the drawing can be printed on the printer with much bigger resolution than rendered to the screen. This also means that the positions and other data can be easily converted into various units - millimeters, inches or pixels.
With MetafileUnits it is possible to control in which units the positions and other data are created when the metafile is read. This is useful if for example the drawing that is created in Microsoft Visio or AutoCad is created in millimeter units, the read WPF object can be also defined in millimeter units.
If the selected unit is Pixel, the current screen dimensions in millimeters and the screens DPI settings are used to convert the data into pixel units.