![]() |
|
Problem converting MM_HIMETRIC file to wpf - Printable Version +- AB4D Forum (https://forum.ab4d.com) +-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4) +--- Forum: Paste2Xaml and Ab2d.ReaderWmf (https://forum.ab4d.com/forumdisplay.php?fid=7) +--- Thread: Problem converting MM_HIMETRIC file to wpf (/showthread.php?tid=71) |
Problem converting MM_HIMETRIC file to wpf - roarmo - 02-14-2011 Hello! I have some EMF files created with the MM_HIMETRIC mapping mode. The Y-coordinate is negative the longer down on the page I get. When loading the file into Paste2Xaml and displaying the xaml preview, the left and top properties are negative, but nothing displays. Is files with MM_HIMETRIC supported, or is there a workaround that could be applied? Thank you in advance for your answer. Sample file enclosed. RE: Problem converting MM_HIMETRIC file to wpf - abenedik - 02-16-2011 Hello, The MM_HIMETRIC mapping mode is currently not supported with Ab2d.ReaderWmf. I will try to add support for it in the future version (I cannot say when it will be available - I need to finish some other things first). When using MM_HIMETRIC mapping mode the y asix is up instead of down. In this mode Ab2d.ReaderWmf wrongly adds bounds to the coordinates and wrongly calculates root canvas size. The following code can be used as a workaround for your case (when you will use Paths or some other more complex objects it will not work any more): Code: Viewbox viewbox = Ab2d.ReaderWmf.Instance.Read("testfilemftowpf.emf"); |