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
파일 보기 프로젝트 열기: d2phap/ImageGlass

공개 메소드들

메소드 설명
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