C# Class D2DTestApp.Form1

Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: filipkunc/GLGraphics

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode 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 méthode

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

Dispose() protected méthode

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

Downsample() public static méthode

public static Downsample ( IList points, float minDistanceX ) : List
points IList
minDistanceX float
Résultat List

DrawGrid() public static méthode

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
Résultat void

DrawMillimeterGridInPixels() public static méthode

public static DrawMillimeterGridInPixels ( IGraphics g, Rectangle rectPx ) : void
g IGraphics
rectPx System.Drawing.Rectangle
Résultat void

Form1() public méthode

public Form1 ( ) : System
Résultat System

ResetMillimeterGrid() public static méthode

public static ResetMillimeterGrid ( ) : void
Résultat void