C# 클래스 Paint.ColorPicker

Color picker - Simple tool that has a preset color - the user can select this tool in order to start using that color
상속: ToolBoxToolTouchBase, IColorPicker
파일 보기 프로젝트 열기: RandolphBurt/MonoGame-iOS-SimplePaint 1 사용 예제들

공개 메소드들

메소드 설명
ColorPicker ( IGraphicsDisplay graphicsDisplay, ColorPickerDefinition colorPickerDefinition ) : System

Initializes a new instance of the Paint.ColorPicker class.

Draw ( bool refreshDisplay ) : void

Draw this tool on to the image

보호된 메소드들

메소드 설명
HandleTouch ( ITouchPoint touchPosition ) : void

Handles a particular touch by the user

OnColorSelected ( EventArgs e ) : void

Raises the color selected event.

메소드 상세

ColorPicker() 공개 메소드

Initializes a new instance of the Paint.ColorPicker class.
public ColorPicker ( IGraphicsDisplay graphicsDisplay, ColorPickerDefinition colorPickerDefinition ) : System
graphicsDisplay IGraphicsDisplay
colorPickerDefinition ColorPickerDefinition
리턴 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

HandleTouch() 보호된 메소드

Handles a particular touch by the user
protected HandleTouch ( ITouchPoint touchPosition ) : void
touchPosition ITouchPoint
리턴 void

OnColorSelected() 보호된 메소드

Raises the color selected event.
protected OnColorSelected ( EventArgs e ) : void
e System.EventArgs /// Any relevant EventArgs (Should be EventArgs.empty) ///
리턴 void