【发布时间】:2015-10-26 05:17:19
【问题描述】:
我想镜像我的图像,以便原始图像和镜像图像并排显示。唯一的问题是我不知道如何扩展我的原始图像的范围以便在它旁边添加它的镜像。
使用我的代码(如下)我已经成功地创建了镜像,只是我不能让原始图像和镜像图像并排显示。
我的代码,
int Height = TransformedPic.GetLength(0);
int Width = TransformedPic.GetLength(1);
for (int i = 0; i < Height / 2; i++)
{
for (int j = 0; j < Width; j++)
{
var Temporary = TransformedPic[i, j];
TransformedPic[i, j] = TransformedPic[Height - 1 - i, j];
TransformedPic[Height - 1 - i, j] = Temporary;
}
}
TransformedPic是保存原图的变量
【问题讨论】: