public static string opDescription(this PPWindow.Brush tool) { switch (tool) { case PPWindow.Brush.Eraser: return("Erase pixel"); case PPWindow.Brush.Darken: return("Darken"); case PPWindow.Brush.Lighten: return("Lighten"); case PPWindow.Brush.Dry: return("Dry"); case PPWindow.Brush.Vivid: return("Vivid"); case PPWindow.Brush.Noise: return("Noise"); case PPWindow.Brush.NoiseTone: return("Noise Tone"); case PPWindow.Brush.Gradient: return("Gradient"); case PPWindow.Brush.FloodFill: return("Flood Fill"); } return("Paint pixel"); }
public static bool usesBrush(this PPWindow.Brush tool) { return(tool != PPWindow.Brush.Replace && tool != PPWindow.Brush.FloodFill); }