T1CFreeImage is a simple ATL component that creates PNG images on the fly. It draws lines and texts with a selected color and saves the rendered image to a file. The component can be used with ASP, Word, Excel and any other applications that support ActiveX. It's supplied with full source code that you can easily extend with your own functions and use new versions of libraries as they become available.