Chapter 18. User Interface
A picture is worth a thousand wordsâor several thousand lines of source code, if youâre generating a bitmap image of it. Writing code to manipulate images of varying color depths, or to trace out multilayer vector art, can be a nightmare of geometric contortions and linear algebra. It makes one yearn for those days of prescreen computers. The first programming class I took used a DECWriter, a printer-based terminal that had no screen, and included the graphics capabilities of a jellyfish. It was perfect for me. I couldnât draw a straight line anyway, and I didnât need some fancy schmancy âvideo display terminalâ reminding me of it.
The graphics included in early display systems werenât much better. âDumb terminals,â such as the popular VT100, included some simple character graphics that displayed basic lines and blocks. Each graphic part was exactly one character in size, and any images you sought to display had to fit in a clunky 80 Ã 24 grid.
Fortunately for art aficionados everywhere, computers have come a long way in the graphics department. GDI+, the standard .NET drawing system, includes complex drawing features that would make a DECWriter cry. Built upon the older Windows âGraphics Device Interfaceâ (GDI) technology, GDI+ includes commands for drawing lines, text, and images in the Picasso-enhanced world of 2D graphics.
Beyond GDI+, .NET also provides support for the newer Windows Presentation Foundation (WPF), a rich user ...
Get Programming Visual Basic 2008 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.