display Vector images in dotNet forms

puma

Active member
Joined
May 17, 2004
Messages
25
Location
Bucharest, Romania
I need to display a vector image (.emf) in a C# Windows form.

The Picture control does this, but it seems to convert the image to raster format, because when I scale the image it becomes jaggy.

Is there a way to do this right (a UserControl, or something like that)?
 
I tried this and did not have the same problem. Did you create the emf? It is possible that your emf contains raster images. If you are certain it does not, perhaps you can store the emf to an image object and when the picturebox control is resized, re-set the image property to a clone of the original emf image object. Im pretty sure that the picurebox does not rasterize metafiles though.
 
Back
Top