Prev Index Next

Clover

Draw by Region

Draw by Region

Notes: This program shows how regions can be used to easily draw complex shapes. There are four regions defined with the CreateElipticRgn() which are the four leaves of the clover image. This regions are then combined CombineRgn() function calls. Then the LineTo() function is used to draw a series of lines in a circular pattern but because of the drawing region the lines only show up inside the leaves of the clover.

Prev Index Next