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.
如果我使用此处描述的技术组合两个图像:
将两张图片合并为一张新图片
如何从它们的组合形式重建两个单独的图像?
假设您知道原始位图的大小,您可以克隆位图的一个矩形:
Bitmap bitmapLeft = bitmap.Clone(new Rectangle(0, 0, widthLeft, heightLeft), PixelFormat.DontCare); Bitmap bitmapRight = bitmap.Clone(new Rectangle(widthLeft, 0, widthRight, heightRight), PixelFormat.DontCare);