Method | Description | |
---|---|---|
Dispose ( ) : void |
Releases managed resources.
|
|
DrawOverlay ( |
Draws an overlay image over the client area.
|
|
InitializeGraphics ( |
Initializes the System.Drawing.Graphics used to draw control elements.
|
|
NewYear2010Renderer ( ) : System |
Initializes a new instance of the NewYear2010Renderer class.
|
|
OnLayout ( LayoutEventArgs e ) : void |
Sets the layout of the control.
|
Method | Description | |
---|---|---|
CreateFlake ( int size, int iterations ) : |
Generates a snowflake from a Koch curve. http://en.wikipedia.org/wiki/Koch_snowflake
|
|
CreateTerrain ( ) : |
Generates a random snowy terrain.
|
|
DrawSnowFlake ( |
Draws a snow flake.
|
|
DrawTerrain ( |
Draws the terrain.
|
|
DrawTerrainOutline ( |
Draws the terrain outline.
|
|
UpdateTimerCallback ( object state ) : void |
Updates snow flakes at each timer tick.
|
public DrawOverlay ( |
||
g | The System.Drawing.Graphics to draw on. | |
bounds | The bounding rectangle of the client area. | |
return | void |
public InitializeGraphics ( |
||
g | The System.Drawing.Graphics to draw on. | |
return | void |
public OnLayout ( LayoutEventArgs e ) : void | ||
e | LayoutEventArgs | A LayoutEventArgs that contains event data. |
return | void |