private void updateBrush() { int R = settings.getPrimaryBrushColor().R; int G = settings.getPrimaryBrushColor().G; int B = settings.getPrimaryBrushColor().B; primaryColor = Color.FromArgb(settings.getBrushHardness(), R, G, B); R = settings.getSecondaryBrushColor().R; G = settings.getSecondaryBrushColor().G; B = settings.getSecondaryBrushColor().B; secondaryColor = Color.FromArgb(settings.getBrushHardness(), R, G, B); }
//Update Function private void updateBrush() { int R = settings.getPrimaryBrushColor().R; int G = settings.getPrimaryBrushColor().G; int B = settings.getPrimaryBrushColor().B; pPrime = new Pen(Color.FromArgb(settings.getBrushHardness(), R, G, B), settings.getBrushSize()); pPrime.LineJoin = LineJoin.Round; pPrime.MiterLimit = pPrime.Width; R = settings.getSecondaryBrushColor().R; G = settings.getSecondaryBrushColor().G; B = settings.getSecondaryBrushColor().B; pSec = new Pen(Color.FromArgb(settings.getBrushHardness(), R, G, B), settings.getBrushSize()); pSec.LineJoin = LineJoin.Round; }
private void updateColors() { int R = settings.getPrimaryBrushColor().R; int G = settings.getPrimaryBrushColor().G; int B = settings.getPrimaryBrushColor().B; cPrime = Color.FromArgb(settings.getBrushHardness(), R, G, B); R = settings.getSecondaryBrushColor().R; G = settings.getSecondaryBrushColor().G; B = settings.getSecondaryBrushColor().B; cSec = Color.FromArgb(settings.getBrushHardness(), R, G, B); //pSec.LineJoin = LineJoin.Round; }
public BrushSettings(SharedSettings s) { InitializeComponent(); lPrime.Text = SharedSettings.getGlobalString("brushsettings_color_primary"); lSec.Text = SharedSettings.getGlobalString("brushsettings_color_secondary"); lSize.Text = SharedSettings.getGlobalString("brushsettings_brush_size"); lHard.Text = SharedSettings.getGlobalString("brushsettings_brush_hardness"); settings = s; pPrime.BackColor = settings.getPrimaryBrushColor(); pSec.BackColor = settings.getSecondaryBrushColor(); tbSize.Value = (int)settings.getBrushSize(); tbHardness.Value = (int)settings.getBrushHardness(); this.Refresh(); }