Nevron Open Vision Documentation
Vector Images

Vector images are made up of basic geometric shapes such as points, lines and curves. The relationship of the shapes is expressed as a mathematical equation, which allows the image to scale up or down in size without losing quality. As a result vector images are resolution independent and look nice at every size.

Following is a list of the sections in this topic:
Vector Image Formats

Nevron Open Vision provides support for the following vector image formats:

Creating Metafile Images 

Metafile images in NOV are represented by the NMetaImage class. Similarly to raster images, you can create metafile images by using either the constructors of the NMetaImage class or the provided static methods like:

Displaying Metafile Images

The easiest way to display a metafile image in your application is to place it in an NMetaImageBox by setting the Image property of the meta image box to the metafile image or directly pass the meta image to the meta image box's constructor. The following code snippet demonstrates how to load an enhanced metafile image from a file and show it in a meta image box:

Creating and showing a metafile image
Copy Code
NMetaImage metaImage = NMetaImage.FromFile(@"D:\Shark.emf");
NMetaImageBox metaImageBox = new NMetaImageBox(metaImage);
You can use the TextureMapping property of the meta image box to specify how the vector image should be rendered in the available area.

Another way to display a meta image in your application is to use the Draw method of the meta image to draw it on a given paint visitor. For example you can override the OnPrePaint method of a widget and render a meta image to the passed paint visitor.

See Also
Send Feedback