C# Class ImageGlass.ImageListView.ImageListViewRenderers.NewYear2010Renderer

A renderer to celebrate the new year of 2010.
Compile with conditional compilation symbol BONUSPACK to include this renderer in the assembly.
Inheritance: ImageListView.ImageListViewRenderer
ファイルを表示 Open project: d2phap/ImageGlass

Public Methods

Method Description
Dispose ( ) : void

Releases managed resources.

DrawOverlay ( Graphics g, Rectangle bounds ) : void

Draws an overlay image over the client area.

InitializeGraphics ( Graphics g ) : void

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.

Private Methods

Method Description
CreateFlake ( int size, int iterations ) : GraphicsPath

Generates a snowflake from a Koch curve. http://en.wikipedia.org/wiki/Koch_snowflake

CreateTerrain ( ) : GraphicsPath

Generates a random snowy terrain.

DrawSnowFlake ( Graphics g, SnowFlake snowFlake ) : void

Draws a snow flake.

DrawTerrain ( Graphics g ) : void

Draws the terrain.

DrawTerrainOutline ( Graphics g ) : void

Draws the terrain outline.

UpdateTimerCallback ( object state ) : void

Updates snow flakes at each timer tick.

Method Details

Dispose() public method

Releases managed resources.
public Dispose ( ) : void
return void

DrawOverlay() public method

Draws an overlay image over the client area.
public DrawOverlay ( Graphics g, Rectangle bounds ) : void
g System.Drawing.Graphics The System.Drawing.Graphics to draw on.
bounds System.Drawing.Rectangle The bounding rectangle of the client area.
return void

InitializeGraphics() public method

Initializes the System.Drawing.Graphics used to draw control elements.
public InitializeGraphics ( Graphics g ) : void
g System.Drawing.Graphics The System.Drawing.Graphics to draw on.
return void

NewYear2010Renderer() public method

Initializes a new instance of the NewYear2010Renderer class.
public NewYear2010Renderer ( ) : System
return System

OnLayout() public method

Sets the layout of the control.
public OnLayout ( LayoutEventArgs e ) : void
e LayoutEventArgs A LayoutEventArgs that contains event data.
return void