C# Class Artemis.Utilities.Keyboard.KeyboardRectangle

显示文件 Open project: SpoinkyNL/Artemis Class Usage Examples

Public Methods

Method Description
Draw ( Graphics g ) : void
KeyboardRectangle ( KeyboardProvider keyboard, int x, int y, List colors, LinearGradientMode gradientMode ) : System.Collections.Generic

Represents a Rectangle on the keyboard which can be drawn to a Bitmap. By default, a rectangle is the entire keyboard's size.

StartBlink ( int delay ) : void
StartBlink ( int delay, int time ) : void
StopBlink ( ) : void

Private Methods

Method Description
BlinkWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
CreateBrush ( ) : LinearGradientBrush
CreateColorBlend ( ) : System.Drawing.Drawing2D.ColorBlend
CreateTilebleColors ( List sourceColors ) : List

Method Details

Draw() public method

public Draw ( Graphics g ) : void
g System.Drawing.Graphics
return void

KeyboardRectangle() public method

Represents a Rectangle on the keyboard which can be drawn to a Bitmap. By default, a rectangle is the entire keyboard's size.
public KeyboardRectangle ( KeyboardProvider keyboard, int x, int y, List colors, LinearGradientMode gradientMode ) : System.Collections.Generic
keyboard Artemis.DeviceProviders.KeyboardProvider The keyboard this rectangle will be used for
x int
y int
colors List An array of colors the ColorBlend will use
gradientMode LinearGradientMode
return System.Collections.Generic

StartBlink() public method

public StartBlink ( int delay ) : void
delay int
return void

StartBlink() public method

public StartBlink ( int delay, int time ) : void
delay int
time int
return void

StopBlink() public method

public StopBlink ( ) : void
return void