Open Dan5783 opened 3 years ago
Yes, please. This would be very useful in our application.
What exactly would you like to do with this? This functionality of D2D isn't directly supported in UWP so this isn't a straightforward change.
I'll answer for my app: we're not interested in UWP. I want to use Win2D with WinUI in a Desktop application and EMF is one of the formats we generate and consume with our current GDI+ impl which we're hoping to replace. So, I want to draw it to a XAML CanvasControl along w/ everything else.
We support EMF images in our reporting engine. It works in WinForms, WPF, and UWP applications. Metafiles are loaded using ID2D1Factory1::CreateGdiMetafile and we draw them with ID2D1DeviceContext::DrawGdiMetafile on IVirtualSurfaceImageSourceNative or even to ID2D1CommandList for printing. It would be nice to migrate our reporting engine to Win2D in the future (currently it uses a fork of SharpDX).
@jschroedl we'll consider this. Right now we're focused on fleshing out support for existing Win2D functionality for WinUI3 and desktop. Depending on our focus (UWP vs Desktop) it may be possible to expose this D2D functionality for desktop in the future.
Could you please add support for loading and drawing metafiles?