C# Graphics Programming

C# Graphics Programming

  • Electronic book text
By (author) 

List price: US$6.99

Currently unavailable

We can notify you when this item is back in stock

Add to wishlist

AbeBooks may have this title (opens in new window).

Try AbeBooks


This Wrox Blox teaches you how to add graphics to C# 2008 applications, explaining fundamental graphics techniques such as: drawing shapes with different colors and line styles; filling areas with colors, gradients, and patterns; drawing text that is properly aligned, sized, and clipped exactly where you want it; manipulating images and saving results in bitmap, JPEG, and other types of files. Also covered are instructions for how to greatly increase your graphics capabilities using transformations. Transformations allow you to move, stretch, or rotate graphics. They also let you work in coordinate systems that make sense for your application. You will also learn how to use all of these techniques in printouts. The author describes the sequence of events that produce a printout and shows how to generate and preview printouts. The final sections describe two powerful new graphic tools that were introduced with .NET Framework 3.0: WPF graphics and FlowDocuments. WPF applications can use XAML graphic commands to declaratively draw and fill the same kinds of shapes that a program can draw by using graphics objects. Finally, a discussion on the FlowDocument object shows you how to define items that should be flowed across multiple pages as space permits. This lets you display text, graphics, controls, and other items that automatically flow across page breaks. FlowDocument viewers make displaying these documents easy for you, and simplifies the user's reading of the documents. This Wrox Blox also contains 35 example programs written in C# 2008, although most of the code works in previous versions of C# as well. The most notable exceptions are WPF graphics and FlowDocuments, both of which require WPF provided in .NET Framework 3.0 and later.
show more

Product details

  • Electronic book text | 65 pages
  • John Wiley & Sons Inc
  • United States
  • 0470343494
  • 9780470343494

Table of contents

Section 1: Using Graphics, Pens, and Brushes. Getting a Graphics Object. Using a Graphics Object. Creating Pens. Creating Brushes. Section 1 Wrap-up. Section 2: Using Advanced Pens and Brushes. Custom Dash Patterns. Longitudinal Stripes. Custom End Caps. Linear Gradient Brushes. Path Gradient Brushes. Section 2 Wrap-up. Section 3: Drawing Text. Drawing Simple Text. Using Layout Rectangles. Section 3 Wrap-up. Section 4: Manipulating Images. Creating and Loading Bitmaps. Manipulating Bitmaps. Saving Image Files. Section 4 Wrap-up. Section 5: Using Transformations. Basic Transformations. World Coordinate Mapping. Section 5 Wrap-up. Section 6: Printing. Using PrintPage. Using Other Event Handlers. Printing Transformations. Section 6 Wrap-up. Section 7: Using WPF Graphics. Decorative Controls. Shape Controls. Brushes. Section 7 Wrap-up. Section 8: Building FlowDocuments. BlockUIContainer. List. Paragraph. Section. Table. Section 8 Wrap-up. Conclusion. About Rod Stephens. Usage Rights for Wiley Wrox Blox.
show more

About Rod Stephens

Rod Stephens started out as a mathematician, but while studying at MIT, discovered the joys of programming and has been programming professionally ever since. During his career, he has worked on an eclectic assortment of applications in such fields as telephone switching, billing, repair dispatching, tax processing, wastewater treatment, concert ticket sales, cartography, and training for professional football players. Rod is a Microsoft Visual Basic Most Valuable Professional (MVP) and ITT adjunct instructor. He has written 18 books that have been translated into half a dozen different languages, and more than 200 magazine articles covering Visual Basic, Visual Basic for Applications, Delphi, and Java. He is currently a regular contributor to DevX ( www.DevX.com ). Rod's popular VB Helper web site www.vb-helper.com receives several million hits per month and contains thousands of pages of tips, tricks, and example code for Visual Basic programmers, as well as example code for this book.
show more