Big bitmap manipulation in WPF

Can WPF manage large bitmaps where GDI + cannot due to memory limitations?

I have bitmaps that are 10,000 Γ— 10,000 easy, and can even be much larger. In the worst case, I think I can split one bitmap into large tiles and work with it, I think.

I basically need to do four things

  • Take a set of tiled images.
  • Put all these tiles in one bitmap
  • Convert a bitmap to black and white
  • Scan a raster image looking for changes from black to white.

I know how to do this in GDI +, but the problem I am facing is that the size of my bitmap is too large for the machine I am using, and this causes the program to crash and I cannot make the image smaller so I hope WPF succeeds where GDI + let me down.

+3
source share
3 answers

In the end, I decided that the best course of action was to work only with tiles, and then have an array that contains the actual information about each tile that I need. Given the number of tiles, this was the only reasonable thing I could do.

+1
source

I do not think WPF can help you.

bitmap? ( , , ), . (GetPixel ) , ( ), , , ( , ). , , - , , .

, (WPF WinForms), , .

, 32- .NET 1,2-1,4 - OutOfMemory.

+1

CommanderZ. Windows PRESENTATION Foundation, Windows. - , , , .

, , , , . , . , .

0

Source: https://habr.com/ru/post/1782722/


All Articles