C# Class ScreenToGif.Controls.FreeDrawPanel

Panel able to receive paint events.
Inheritance: System.Windows.Forms.Panel
Afficher le fichier Open project: dbremner/ScreenToGif

Méthodes publiques

Méthode Description
Draw ( Action drawAction ) : void

Applies the Action to the cached image.

DrawCachedImage ( Graphics graphics ) : void

Draws the cached image with current Graphics.

EraseAll ( ) : void

Clears the cached image.

EraseEvent ( MouseEventArgs e, int eraserSize ) : void

Paint as Color.Transparent the selected area.

Méthodes protégées

Méthode Description
OnPaint ( PaintEventArgs e ) : void

Private Methods

Méthode Description
InitializeCachedImage ( ) : void

Method Details

Draw() public méthode

Applies the Action to the cached image.
public Draw ( Action drawAction ) : void
drawAction Action
Résultat void

DrawCachedImage() public méthode

Draws the cached image with current Graphics.
public DrawCachedImage ( Graphics graphics ) : void
graphics System.Drawing.Graphics The current graphics to be applied.
Résultat void

EraseAll() public méthode

Clears the cached image.
public EraseAll ( ) : void
Résultat void

EraseEvent() public méthode

Paint as Color.Transparent the selected area.
public EraseEvent ( MouseEventArgs e, int eraserSize ) : void
e MouseEventArgs A MouseEventsArgs object
eraserSize int The Size of the eraser.
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void