C# Class Paint.ColorSetter

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

Méthodes publiques

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

Méthodes protégées

Méthode Description
DrawRectangle ( Rectangle rectangle, Color color ) : void

Draws the rectangle.

Method Details

ColorSetter() public méthode

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

Draw() public méthode

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

DrawRectangle() protected méthode

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