More ASCII Art

A few recent posts on the weblogs.asp.net feed [1 2 3] reminded me of a some code I wrote a year ago and have been meaning to post.

This is a simple ASP.NET page - you upload the image file and input the text; it scales the text to the same proportions as the image and applies the HTML color in a font tag. Most ASCII Art things just let you pick the image, this one lets you pick your text too - helpful if you want to embed your copyright into the image. Okay, yes, it is completely useless. One obvious optimization would be grouping to eliminate unnecessary font tags when adjacent characters are the same color (<font color='#BFBFBF'>i</font><font color='#BFBFBF'>t</font> becomes <font color='#BFBFBF'>it</font>).

Try it: [here]

Sample output:

With Microsoft® Visual Studio® .NET and the Microsoft .NET Framework, developers can develop Web
services quickly and integrate them easily with other applications. Most developers can leverage
existing skills, because the .NET Framework's common language runtime allows you to develop Web
services using any modern programming language.     * Microsoft Visual Studio .NET and the Microsoft
.NET Framework supply a complete solution for developers to build, deploy, and run Web services.     *
These tools help enhance the performance, reliability, and security of Web services. Microsoft
Visual Studio .NET Developers can use a variety of programming environments to create Web services.
Microsoft Visual Studio .NET represents the best development environment for .NET-connected software
and services. Visual Studio .NET advances the high-productivity programming languages: Microsoft
Visual Basic®, which includes new object-oriented programming features; Microsoft Visual C++®, which
advances Microsoft Windows® development and enables you to build .NET-connected applications; and C#,
which brings RAD to the C and C++ developer. Program in the Right Language for the Task Visual
Studio .NET provides a single, unified development environment. Built on the .NET Framework, it
provides support for working with Web services created in all modern programming languages.
Applications and Web services created in one language can be programmed against and debugged in any
other language supported by Visual Studio .NET. This greatly enhances the ability to use existing Web
services to build new and exciting solutions. Transform Applications into Web Services Visual
Studio .NET automatically creates the necessary XML and SOAP interface needed to turn an application
into a Web service. Developers can concentrate on building the application, not on the plumbing for the
Web service. Reuse Existing Web Services Developing with Web services is similar to developing with
components. Visual Studio .NET gives developers the ease of importing Web services or using Web
services hosted remotely and programming against them as they would a COM element today, saving time
and giving developers the opportunity to concentrate on core functionality. Microsoft .NET Framework
and Microsoft .NET Compact Framework The .NET Framework, and the device-focused .NET Compact
Framework, are high-productivity, standards-based, multi-language application execution environments
that handle essential plumbing chores and ease deployment. The application execution environment
manages memory, addresses versioning issues, and improves the reliability, scalability, and security of
your application. Components include the common language runtime, a rich set of class libraries for
building Web services, and Microsoft ASP.NET. The common language runtime is the engine in the .NET
Framework that provides a managed execution environment, which is protected by industry-standard
technologies, and is designed to support developers using many different languages to create
applications.

Code:

+ Default.aspx.cs 

+ Default.aspx 

1 Comment

  • .,,,yyyy@@yyyyy,,, ,ytS$$CCCCCCCCCCCCCCC?III;,. .yt$$$$$$$$CCCCCCCCCCCCCCCCIIIIII;. ,4$$$$$$$$$$$$$$SCCCCCCCCCCCCCCC?IIIII; y$$$$$$$$$$$$$$$$$$$$CCCCCCCCCCCCCCCIIII, ,$$$$$$$$$$$$$$$$$$$$$$$$CCCCCCCCCCCCCCIIII: l$$$$$$$$$$$$$$$$$$$$$$$$$$$CCCCCCCCCCCCIIIIi t$$$$$$$$$$$$$$$$$$$$$$$$$$$$CCCCCCCCCCCCIIII: .l$$$$$$$$$$$$$$$$$$$$$$$$$$$SCCCCCCCCCCCCCIIII, i d$$$$$$$$$$$$$$$$$$$$$$$$$$$SCCCCCCCCCCCCCIIIII. ;I, $$$$$$$$$$$$$$$$$$$$$$$$$$SSCCCCCCCCCCCCCIIIIIII .III j$$$$$$$$$$$$$$$$$$$$$$$$$SSCCCCCCCCCCCCCCIIIIIIIi.II; ]$$$$$$$$$$$$$$$$$$$$P"' `"^?CCCCCCCCCCIIIIIIIIIIIII l$$$$$$$$$$$$$$$$P"'' .,.. `;?CCCCCCC?IIIIIIIIII; .y%* l$$$$$$$$$$$$SP" ,yS$$$$$$Shy..`"IICCCCCCII: :: 4C7; \ $$$$$$$$$$$SP. .;;$$$SCCCCCSSCCCCSb: ICCCCCCCII; '' liC$ClCC;;l $$$$$$$$$$$$I::lIIIICCSSSSSSCCCCCCCCCCIICCCCCCCI ICCC$lCC??;b P"^^^48$$$$$$SSIII' `Ii : y,"ICCCS$SCCCCCCCCCCI ICl"l "7SSbl. : l$$8888II66 ,?$b,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