C# Class ScreenToGif.Controls.FreeDrawPanel

Panel able to receive paint events.
Inheritance: System.Windows.Forms.Panel
Mostra file Open project: dbremner/ScreenToGif

Public Methods

Method 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.

Protected Methods

Method Description
OnPaint ( PaintEventArgs e ) : void

Private Methods

Method Description
InitializeCachedImage ( ) : void

Method Details

Draw() public method

Applies the Action to the cached image.
public Draw ( Action drawAction ) : void
drawAction Action
return void

DrawCachedImage() public method

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

EraseAll() public method

Clears the cached image.
public EraseAll ( ) : void
return void

EraseEvent() public method

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.
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void