An unclear converted image. wmf to png

前端 未结 3 1058
梦毁少年i
梦毁少年i 2021-01-14 18:02

I\'m trying to convert wmf image file into png format with c#.net.

But, saved image is unclear.

my code:

Metafile img = new Metafile(@\"test.         


        
3条回答
  •  佛祖请我去吃肉
    2021-01-14 18:38

    EMF vectors can be very weird when converting to a PNG (especially when small formats are used). I ended up blowing it up 4x and than converting it to the size I want. The results are better when using this strategy.


    Source: https://keestalkstech.com/2016/06/rasterizing-emf-files-with-net-c/

提交回复
热议问题