GotDotNet - Animated Vector-Drawn Logo and Cylindrical Trackbar

By John Douglas


Source Code: Animated Vector Logo

This is a really cool sample showing what can be achieved with GDI+. The original article and original code can be found at http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=6208A9BB-22E4-4A72-8E81-30EAAD296406.

The application has two controls, AnimatedLogo and CylinderTrackBar.

AnimatedLogo demonstrates the creation and animation of a logo using vector drawing techniques in GDI+. The advantages of these technique are numerous: low memory footprint, high-performance, and the power to use GDI+ transformations on the resulting object.

CylinderTrackBar displays numeric values in a cylinder with a customizable gradient fill. The user can also drag the fill of the cylinder up and down to set the value. Color, gradient, and display value can all be set via the property grid editor.

The CylinderTrackBar control consists of three classes:

Class Description
DrawingUtils Utility class with several usefuls methods, GetRoundRectangle, FillCylinder, FillCylinderShadow and GetSideColor.
RoundControl Base class user control.
CylinderTrackBar Inherits from RoundControl.

All source code is included from Mycos Technologies, makers of Mycos Charts .NET for Windows Forms and . ASP.NET. Contact them with questions or suggestions at support@mycostech.com


<< Snake Contents Graphic Monitor for CPU and RAM >>

© Publicjoe, 2008