A programming essential tool and developer utility basic nuts-and-bolts necessity. This is located in and a member of the System.Drawing namespace, a class to be used for specifying the color and width of drawings. It can be used to draw lines, curves and arrows. It is also NOT an inherited class. There are pens for all standard colors – use it to avoid any instance(s) of PenClass. Needed for graphics classes and drawing essential tools. Code lines can drastically edit the appearance on forms, files et al. A graphics enhancer or sorts. Creating graphics from scratch, editing them, modifying existing images. Adding circles, lines and other shapes dynamically, create new drawings, edit and resizing pictures, edit compression ratios of pictures, crop, zoom, add copyright or logo’s, text, to pictures. The pen forms a critical tool in the develop toolkit. Location and size of control on forms, color, lines and shapes, drawing, customizing pens, filling shapes, pie-charts, appearance improvements, all with a stroke of a pen (or brush – see elsewhere), through graphics, image and bitmap, point and size classes, color, creating a pen object, drawing lines using the pen instance, adding end-caps, customization, changing line types, dots and dashes, solid shapes, brushes and more.
Creative genius at work, with the stroke of the pen adding text to graphics, object (font, graphic, brush, drawstring), drawing lines and curves with pen and graphics object, image and bitmap classes, all work with choosing the right tool and technique for the task, simple charts, enhancing a user interface, (brush, color, pen, colors, fonts), graphics, images, bitmaps and icons, shapes and sizes.
Key Exam Points
- Use Pen for graphics, enhancements and more, C# and VB
Review the chapters on framework fundamentals and graphics elements, tools and utilities, methods and techniques.
- For the exam, study practical, hands-on, illustrative, drawing and graphics examples for the use of pen, brush, colors, graphics, bitmaps and more, that help you to gain a better understanding of this topic
- Do practice tests
Bitmap, graphics, brush
This article is based on the 2nd edition of the Microsoft .Net Framework Application Training Kit with the purpose to help 70-536 Exam takers to succeed. I constantly look for ways to improve the content. Please leave a comment about this article or drop me a message if you would like to see changes for this site.