C# Class Paint.ColorSetter

Color setter - A tool used to indicate the currently selected color for drawing
Inheritance: IColorSetter, IToolBoxTool
Mostrar archivo Open project: RandolphBurt/MonoGame-iOS-SimplePaint Class Usage Examples

Public Methods

Method Description
ColorSetter ( IGraphicsDisplay graphicsDisplay, ColorSetterDefinition colorSetterDefinition ) : System

Initializes a new instance of the Paint.ColorSetter class.

Draw ( bool refreshDisplay ) : void

Draw this tool on to the image

Protected Methods

Method Description
DrawRectangle ( Rectangle rectangle, Color color ) : void

Draws the rectangle.

Method Details

ColorSetter() public method

Initializes a new instance of the Paint.ColorSetter class.
public ColorSetter ( IGraphicsDisplay graphicsDisplay, ColorSetterDefinition colorSetterDefinition ) : System
graphicsDisplay IGraphicsDisplay
colorSetterDefinition ColorSetterDefinition
return System

Draw() public method

Draw this tool on to the image
public Draw ( bool refreshDisplay ) : void
refreshDisplay bool /// True = we should redraw the entire control /// False = just draw any updates ///
return void

DrawRectangle() protected method

Draws the rectangle.
protected DrawRectangle ( Rectangle rectangle, Color color ) : void
rectangle Microsoft.Xna.Framework.Rectangle
color Color
return void