English 中文(简体)
世界森林论坛的大型蓝图
原标题:Large bitmap maniuplation in WPF
  • 时间:2010-12-30 04:57:08
  •  标签:
  • c#
  • wpf

计生联是否能够操纵大型轨道图,而全球发展指数+不能因为记忆限制?

我有10 000x10 000人容易获得的比图,甚至可能大大超出地图。 我认为,最糟糕的情况是,我可以把单一轨道图分解成大片,并与我猜想者合作。

I basically need to do four things

  1. Take an set of tiled images
  2. Put all of those tiles into a single bitmap
  3. Convert the bitmap to black and white
  4. Scan the bitmap looking for changes from black to white

我知道如何在全球发展趋势+中做这些事情,但我正在讨论的问题是,我的轨道图的大小对我使用的机器来说太大,造成方案坠毁,我无法使图像变得更小,因此我希望,如果全球发展趋势+失败我,世界森林论坛将能够取得成功。

最佳回答

我最终决定,最佳行动方针是只与无能为力者合作,然后有一阵列,掌握我所需要的有关每一功能的实际信息。 鉴于无能为力,这是我所能做的唯一明智的事情。

问题回答

我不认为世界森林论坛能够在这里帮助你。

为什么你们想要使用比图标? 您也可以与两维系的 by或双倍(或任何其他类型,视你需要的准确度和范围而定)合作,特别是如果你只使用一个渠道。 相对图有可观的计算间接费用(GetPixel, 等),与阵列一起工作的是速度更快(我从个人经验中知道),唯一的问题是,你可以显示它们(你必须把阵列重新转变为形象,这相当简单)。 但是,由于你似乎想对数据进行某种分析,我认为阵列将更适合你们的需要。

如果你愿意,我可以张贴密码样本,详细说明从轨道图(即WPF或WinForms)转换成阵列。

But remember, that 32bit .NET application can use approximately 1.2-1.4 gigabytes of memory - you have to fit in this space or you start getting OutOfMemory exceptions.

Like CommanderZ said. Its Windows PRESENTATION Foundation, not Windows Image-manipulation Foundation. You should try to either find some kind of image-manipulation library, but looking at size of your image, then doing everything yourself might be only way.

具体来说,你也许会以整体的比照图工作,因此,你会以无能为力。 那么,如果你需要与邻近的食堂合作,就会产生问题。 但是,我猜想你们应该看一下这一 yourself。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签