Volume 1, issue 7

February 2004

Non-Client operations

This month sees the start of a new series in which you'll learn how to enhance your controls by using the non-client area. We begin by looking at how to change the client size and draw on the non-client portion of the window. The demo software shows you how to create a control with proper rounded rectangle borders.

Adjustable round-rect borders in the non-client area.

Understanding graphics transforms

GDI+ provides excellent facilities for manipulating graphics using the Matrix class but creating a complex graphics system can be confusing.  Find out how to create a graphics transform stack which allows you to define graphical objects that have complex relationships to each other.  The demonstration code for this article creates an application called Graphics Explorer and that shows you in detail how to manipulate complex graphical systems. 

The Graphics Explorer program

Flood-filling

Filling an area with color is a basic function that is missing from GDI+.  This article explains how to create a non-recursive flood-filling class that fills irregular areas quickly and efficiently thanks to its use of GDI+ techniques.  The accompanying test program shows how to turn a PictureBox into a component which can flood-fill images at the click of a button. 

  

Before and after flood-filling a monochrome image.

 

Subscribe to Well Formed now. 

Find out what you've missed in previous months. 

August, 2003. 

September, 2003. 

October, 2003. 

November, 2003. 

December, 2003

January, 2004