This article shows how to create images on the fly and uses XML to specify the properties of the images.
The idea was to be able to create images for buttons on a website. The buttons would simply have a word inside them so it is pretty straightforward. However the interesting approach is to specify the details of the graphics using an XML schema. By doing so I can specify different combinations of colours and words etc. In my program I hard code the XML string into the code direct but it could just as easily be passed in from a command prompt or the program could be changed to a web service etc.
In short the program at the very minimum shows how easy it is to parse XML. You will see that by using data in XML you can in effect chop off a branch of the XML tree and then loop through all the data in just that branch. Once done, you go back and get the next branch and so on.
This code was written with Visual Studio.NET RTM.
//CreateGif.cs//Written 6th April 2001 by John O'Donnell - [email protected]//Parses an XML string and uses the infortion to create gif files.