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[幅-x][y]; G[x][y]=G[幅-x][y]; B[x][y]=B[WIDTH-x][y];}}
水平反転機能は上記とほぼ同じに見えるはずです。しかし、反転したイメージを実現します。
System.Drawing.Bitmap を使用する
System.Drawing.Bitmap の MSDN ドキュメント