.net 中的大图像
我想用C#创建大图像。 (我有一些大尺寸的照片(4800 * 4800)。我想合并这些照片。)
我使用位图但不支持。 (错误:参数无效)
I want to create large image by C#. (i have some photos with large size (4800 * 4800). i want to merge these photos.)
I use Bitmap but don't support. (Error : Invalid Parameter)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一些代码会很有用......
但是,为了冒险进行有根据的猜测,我怀疑您正在尝试创建宽度或高度(或两者)大于 2 的
Bitmap
实例^15。本质上,您不能 - .NET 位图类对它们可以处理的图像大小有限制。原始 4800 像素的方形图像不会有问题,但超过 32,767 像素就会有问题。
Some code would be useful ...
... However, to hazard an educated guess, I suspect you're trying to create an instance of
Bitmap
with either Width or Height (or both) greater than 2^15.Essentially, you can't - the .NET bitmap classes have a limitation on how big an image they can handle. Your original 4800 pixel square images won't be a problem, but going over 32,767 pixels will be.
你可能想检查AForge.NET,它内置了一个大型图像处理器,并且是开放的来源。
you might like to check AForge.NET, it has a large image processor built in, and it's open source.