We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to convert EMF, WMF to raster image

How to convert EMF, WMF to raster image most quickly without saving to disk? Then all I need to do is extract the pixel data.

@Andrey.Golubkov you can try following code:

using (EmfImage image = (EmfImage)Image.Load(@"template.emf"))
            {
                using (MemoryStream stream = new MemoryStream())
                {
                    image.Save(stream, new PngOptions());
                    stream.Seek(0, System.IO.SeekOrigin.Begin);
                    using (RasterImage image2 = (RasterImage)Image.Load(stream))
                    {
                        int[] pixels = image2.LoadArgb32Pixels(image2.Bounds);                        
                    }
                }
} 

Thank you very much!