Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 ppm 文件,我想出了如何从中间镜像图像,但我不知道如何水平翻转它。这是镜像功能的代码:
{R[x][y]=R[WIDTH-x][y]; G[x][y]=G[WIDTH-x][y];B[x][y]=B[WIDTH-x][y];}}
水平翻转功能应该和上面差不多。但实现翻转图像。
使用 System.Drawing.Bitmap
System.Drawing.Bitmap 的 MSDN 文档