This post originated from an RSS feed registered with .NET Buzz
by Frank Hileman.
Original Post: VG.net 1.7 Released
Feed Title: Frank Hileman's Blog
Feed URL: http://weblogs.asp.net/frank_hileman/rss?containerid=13
Feed Description: Vector Graphics with VG.net, MyXaml, and Visual Studio Integration
A new sample program for VG.net, called PanZoom, demonstrates how to use the new Zoom property in the Canvas class. The program uses this simple code to zoom in when the user clicks on a context menu:
canvas.Zoom *= 1.25;
And this code to zoom out:
canvas.Zoom /= 1.25;
Some other changes in this release:
Serialization to .myxaml xml files (see previous blog entry)
Centralization of Image storage in an ImageManager attached to each Picture. By using the ImageManager, we eliminated redundant storage of identical bitmaps within .resx files. ImageManager serves the same purpose as ImageList in windows forms, but is easier to use, since Images are referenced by name, not by index.
Many classes and properties were renamed. The API is now stable and can be used in production applications.