Thursday, January 05, 2006
CodeDom and GDI+
So today's post is about a small learning tool that I worked on. Basically it concerns two aspects of .NET that I find quite interesting. The first part is CodeDom, which lets you generate and compile code during run-time. Such as off of a file, string, or Document Object Model (DOM). So that you can programatically create class, variables, and methods and then compile it all during run-time! Very cool if you ask me, it gives you the ability to easily write an interpreter, or scripting engine. The other half/purpose of the program is so I can learn more about GDI+ and the available methods it offers. Basically what my program does is that, you can write code into a text box (preferably GDI+ code) and it'll run the code and render the graphics onto a picturebox. The original intent of this tool really was for me to draw rounded corners for my website. Since I'm a programmer I figured writing code might be easier for me than dragging a mouse. But in the end, what had happened was that I used this and found how GDI+ rendered the graphics on the screen and mimicked the results in photoshop. So essentially I used a combination of this and photoshop to help me create images. Nonetheless it was a good learning experience. I posted a page on my site about this project and some explanations. If I find more use for this program then I'll improve on it, but in the mean-time it serves as a good code sample/repository for me.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment