从组合图像中提取图像

时间:2013-02-28 21:41:23

标签: c#

如果我使用此处描述的技术合并两个图像:

Combine two Images into one new Image

如何从组合形式重建两个单独的图像?

1 个答案:

答案 0 :(得分:2)

假设你知道原始位图的大小,你可以克隆一个位图的矩形:

Bitmap bitmapLeft = bitmap.Clone(new Rectangle(0, 0, widthLeft, heightLeft), PixelFormat.DontCare);
Bitmap bitmapRight = bitmap.Clone(new Rectangle(widthLeft, 0, widthRight, heightRight), PixelFormat.DontCare);
相关问题