Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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)?

  • Leaders
Posted
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. I'm pretty sure that the picurebox does not rasterize metafiles though.
[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...