Saturday, March 26, 2005

Extension for AvatarCreator

Today I have written a small extension for the AvatarCreator I mentioned yesterday.

It's actually a pretty simple class, which only took me an hour to code ;)

It only has two functions:
1. GetTemplates()
This function will read the C9 wiki page on avatar templates and return the URLs of the templates as a string array.

2. DownloadTemplate(string url)
This one downloads the xml template and checks if the needed image file is embedded. If not, it will also download the image file and return both in a multidimensional byte array. At position 0 you will find the template and at position 1 the image (if not embedded) is found.

So, let's see, if Sven feels like he can use it ;)

0 Comments:

Post a Comment

<< Home