C# 如何把 图处理成 反相

时间: 2022-02-07 / 分类: C# / 浏览次数: 350 views / 0个评论 发表评论
private void fx(Bitmap g)
        {
            for(int i=0;i<g.Width;i++)
                for (int j = 0; j < g.Height; j++)
                {
                    Color c = g.GetPixel(i, j);
                    Color cc=Color.FromArgb(255-c.R,255-c.G,255-c.B);
                    g.SetPixel(i,j,cc);
                }
        
        }

https://bbs.csdn.net/topics/240074740?list=30132

发表评论

您的昵称 *

您的邮箱 *

您的网站