Beispiel #1
0
		public override void OnMouseDown(MouseEventArgs mouseEvent)
		{
			base.OnMouseDown(mouseEvent);

			if (mouseEvent.Button == MouseButtons.Left)
			{
				int x = (int)mouseEvent.X - imageOffset.x;
				int y = (int)mouseEvent.Y - imageOffset.y;

				FloodFill filler = new FloodFill(RGBA_Bytes.Red);
				filler.Fill(imageToFillOn, x, y);

				Invalidate();
			}
		}
Beispiel #2
0
        public override void OnMouseDown(MouseEventArgs mouseEvent)
        {
            base.OnMouseDown(mouseEvent);

            if (mouseEvent.Button == MouseButtons.Left)
            {
                int x = (int)mouseEvent.X - imageOffset.x;
                int y = (int)mouseEvent.Y - imageOffset.y;

                FloodFill filler = new FloodFill(RGBA_Bytes.Red);
                filler.Fill(imageToFillOn, x, y);

                Invalidate();
            }
        }