C# Class Pinta.Core.RecolorTool

Inheritance: BaseBrushTool
Show file Open project: xxgreg/Pinta

Protected Properties

Property Type Description
tolerance_label ToolBarLabel
tolerance_slider Pinta.Core.ToolBarSlider

Public Methods

Method Description
RecolorTool ( ) : System

Protected Methods

Method Description
OnBuildToolBar ( Gtk tb ) : void
OnMouseDown ( Gtk.DrawingArea canvas, ButtonPressEventArgs args, PointD point ) : void
OnMouseMove ( object o, Gtk args, Cairo point ) : void

Private Methods

Method Description
AdjustColorByte ( byte oldByte, byte newByte, byte basisByte ) : byte
AdjustColorDifference ( ColorBgra oldColor, ColorBgra newColor, ColorBgra basisColor ) : ColorBgra
CheckColor ( ColorBgra a, ColorBgra b, int tolerance ) : bool
IsColorInTolerance ( ColorBgra colorA, ColorBgra colorB ) : bool

Method Details

OnBuildToolBar() protected method

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

OnMouseDown() protected method

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

OnMouseMove() protected method

protected OnMouseMove ( object o, Gtk args, Cairo point ) : void
o object
args Gtk
point Cairo
return void

RecolorTool() public method

public RecolorTool ( ) : System
return System

Property Details

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