Esempio n. 1
0
        private BitmapPixelChanges ChangeBrightness(Layer layer, Coordinates coordinates, int toolSize, float correctionFactor)
        {
            PenTool pen      = new PenTool();
            Color   pixel    = layer.LayerBitmap.GetPixel(coordinates.X, coordinates.Y);
            Color   newColor = ExColor.ChangeColorBrightness(Color.FromArgb(pixel.A, pixel.R, pixel.G, pixel.B), correctionFactor);

            return(pen.Draw(coordinates, newColor, toolSize));
        }
Esempio n. 2
0
        public override BitmapPixelChanges Use(Layer layer, Coordinates startingCoords, Color color, int toolSize)
        {
            PenTool pen = new PenTool();

            return(pen.Draw(startingCoords, System.Windows.Media.Colors.Transparent, toolSize));
        }