C# 클래스 Paint.ColorSetter

Color setter - A tool used to indicate the currently selected color for drawing
상속: IColorSetter, IToolBoxTool
파일 보기 프로젝트 열기: RandolphBurt/MonoGame-iOS-SimplePaint 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
DrawRectangle ( Rectangle rectangle, Color color ) : void

Draws the rectangle.

메소드 상세

ColorSetter() 공개 메소드

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

Draw() 공개 메소드

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 ///
리턴 void

DrawRectangle() 보호된 메소드

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