C# Класс 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.
Наследование: ImageListView.ImageListViewRenderer
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Dispose() публичный Метод

Releases managed resources.
public Dispose ( ) : void
Результат void

DrawOverlay() публичный Метод

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.
Результат void

InitializeGraphics() публичный Метод

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.
Результат void

NewYear2010Renderer() публичный Метод

Initializes a new instance of the NewYear2010Renderer class.
public NewYear2010Renderer ( ) : System
Результат System

OnLayout() публичный Метод

Sets the layout of the control.
public OnLayout ( LayoutEventArgs e ) : void
e LayoutEventArgs A LayoutEventArgs that contains event data.
Результат void