Click or drag to resize
ReaderWmfMetafileUnits Property
Gets or sets the units in which the matafile objects will be read. The default value is Pixel.

Namespace: Ab2d
Assembly: Ab2d.ReaderWmf (in Ab2d.ReaderWmf.dll) Version: 7.1.5512.1040
Syntax
C#
public MetafileUnits MetafileUnits { get; set; }

Property Value

Type: MetafileUnits
Remarks

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.

See Also