70002060 Improvements of EMF import files

Article 70002060
Type Wish
Product Converter
Version 9002
Date Added 9/20/2021 12:00:00 AM
Fixed 9.9003.0.1 (9/23/2021 12:00:00 AM)
Submitted by VectorDraw Team


Iprovements of EMF import files


In version 9003.0.1 a new implementation of impoting Emf and Wmf was added
Emf and Wmf files are embeded to a vdImage object and can be exploded to a a single block reference that contains metafile records converted to vdFigures

Also vdImageDef support the rerendering of Emf and Wmf files
You can add .emf and .wmf files to the vdDocument.Images collection

A new property EMFImportProperties of vdDocument.FIleProperties was also added , to manage the way that metafiles open.
It can get one of the following values

VDF8 = 0 : Backword compatibility.Open using old vdf version 8 algorithm Imports metafile records as exploded entities mapping world coordinates metafile pixels
AsImage = 1 : Open the file to a single vdImage with size set to the imported metafile Bounds in Pixels
AsBlockRef = 2 : Open the file to a single vdInsert with size and VectorDraw.Professional.vdFigures.vdInsert.ClipBoundary set to the imported metafile Bounds in Pixels
AsExploded = 3 : Open as explode entities mapping world coordinates to metafile pixels. Same as AsBlockRef exloded to its Block reference entities

Default value is AsImage

Note vdImages that reference metafiles in Wire2d render are render as Scalable vectors directly by .NetFrameWork and as Bitmap to other render modes
Exploded vdImages are convert all metafile records to VDF figures inside a block reference

Send comments on this topic.