C# Class D2DTestApp.Form1

Inheritance: System.Windows.Forms.Form
Mostra file Open project: filipkunc/GLGraphics

Public Methods

Method Description
CreateRoundedRectanglePath ( RectangleF rect, int cornerRadius ) : GraphicsPath
Downsample ( IList points, float minDistanceX ) : List
DrawGrid ( Graphics g, Pen pen, RectangleF rect, float step ) : void
DrawMillimeterGridInPixels ( IGraphics g, Rectangle rectPx ) : void
Form1 ( ) : System
ResetMillimeterGrid ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AutomaticTest ( object userState ) : void
CreateMillimiterGridBrush ( Dpi dpi ) : void
DoTestAntialiasing ( bool antialiasing ) : void
Draw ( IGraphics g, DrawingMode mode ) : void
DrawLines ( IGraphics g, List points, DrawingMode mode ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

buttonRunAutomaticTest_Click ( object sender, EventArgs e ) : void
panelD2DHW_PaintCanvas ( object sender, D2DView e ) : void
panelD2DSW_PaintCanvas ( object sender, D2DView e ) : void
panelGL_PaintCanvas ( object sender, GLWrapper e ) : void
panelGdi32_Paint ( object sender, PaintEventArgs e ) : void
panelGdipDrawLines_Paint ( object sender, PaintEventArgs e ) : void
panelGdipForDrawLine_Paint ( object sender, PaintEventArgs e ) : void
timer1_Tick ( object sender, EventArgs e ) : void

Method Details

CreateRoundedRectanglePath() public static method

public static CreateRoundedRectanglePath ( RectangleF rect, int cornerRadius ) : GraphicsPath
rect System.Drawing.RectangleF
cornerRadius int
return System.Drawing.Drawing2D.GraphicsPath

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Downsample() public static method

public static Downsample ( IList points, float minDistanceX ) : List
points IList
minDistanceX float
return List

DrawGrid() public static method

public static DrawGrid ( Graphics g, Pen pen, RectangleF rect, float step ) : void
g System.Drawing.Graphics
pen System.Drawing.Pen
rect System.Drawing.RectangleF
step float
return void

DrawMillimeterGridInPixels() public static method

public static DrawMillimeterGridInPixels ( IGraphics g, Rectangle rectPx ) : void
g IGraphics
rectPx System.Drawing.Rectangle
return void

Form1() public method

public Form1 ( ) : System
return System

ResetMillimeterGrid() public static method

public static ResetMillimeterGrid ( ) : void
return void