I am creating a png image that is drawn on my base, from the base I can save a png image for your reference
Graphics g = e.Graphics; .... g.DrawLine(pen, new Point(x, y), new Point(x1, y1)); ..... base.OnPaint(e); using (var bmp = new Bitmap(500, 50)) { base.DrawToBitmap(bmp, new Rectangle(0, 0, 500, 50)); bmp.Save(outPath); }
This is a one-color transparent image, now how can I invert this image, for example, PNG, filled with any color, and the real part of the image should be transparent, are there any possibilities?
bit: transparent will be opaque, and where the fill will be transparent.
source share