C# Class Pinta.Core.FloodTool

Inheritance: BaseTool
Show file Open project: xxgreg/Pinta

Protected Properties

Property Type Description
mode_combo ToolBarComboBox
mode_label ToolBarLabel
stencil IBitVector2D
tolerance_label ToolBarLabel
tolerance_slider Pinta.Core.ToolBarSlider

Public Methods

Method Description
FillStencilByColor ( ImageSurface surface, IBitVector2D stencil, ColorBgra cmp, int tolerance, Rectangle &boundingBox ) : void
FillStencilFromPoint ( ImageSurface surface, IBitVector2D stencil, Point start, int tolerance, Rectangle &boundingBox ) : void

Protected Methods

Method Description
OnBuildToolBar ( Gtk tb ) : void
OnFillRegionComputed ( Point polygonSet ) : void
OnMouseDown ( Gtk canvas, Gtk args, PointD point ) : void

Private Methods

Method Description
CheckColor ( ColorBgra a, ColorBgra b, int tolerance ) : bool

Method Details

FillStencilByColor() public static method

public static FillStencilByColor ( ImageSurface surface, IBitVector2D stencil, ColorBgra cmp, int tolerance, Rectangle &boundingBox ) : void
surface Cairo.ImageSurface
stencil IBitVector2D
cmp ColorBgra
tolerance int
boundingBox Cairo.Rectangle
return void

FillStencilFromPoint() public static method

public static FillStencilFromPoint ( ImageSurface surface, IBitVector2D stencil, Point start, int tolerance, Rectangle &boundingBox ) : void
surface Cairo.ImageSurface
stencil IBitVector2D
start Point
tolerance int
boundingBox Cairo.Rectangle
return void

OnBuildToolBar() protected method

protected OnBuildToolBar ( Gtk tb ) : void
tb Gtk
return void

OnFillRegionComputed() protected abstract method

protected abstract OnFillRegionComputed ( Point polygonSet ) : void
polygonSet Point
return void

OnMouseDown() protected method

protected OnMouseDown ( Gtk canvas, Gtk args, PointD point ) : void
canvas Gtk
args Gtk
point Cairo.PointD
return void

Property Details

mode_combo protected property

protected ToolBarComboBox,Pinta.Core mode_combo
return ToolBarComboBox

mode_label protected property

protected ToolBarLabel,Pinta.Core mode_label
return ToolBarLabel

stencil protected property

protected IBitVector2D stencil
return IBitVector2D

tolerance_label protected property

protected ToolBarLabel,Pinta.Core tolerance_label
return ToolBarLabel

tolerance_slider protected property

protected ToolBarSlider,Pinta.Core tolerance_slider
return Pinta.Core.ToolBarSlider