How can I use Gdiplus to render an image 24000 x 48000 with 32-bit pixel depth? On my machine I have 32GB RAM. Or alternatively, how can I use GDIplus to scale a bitmap without drawing it into another bitmap? I'm writing a simulation and some get that large. HELP!
Asked
Active
Viewed 307 times
1
-
1Are you using a 64-bit build target? A 32-bit build only has a 2 GB per process address space, or 3 GB if /largeaddressaware flag is set. – Dave S Mar 28 '19 at 22:48
-
2It's GDI+ see - https://stackoverflow.com/questions/29175585/what-is-the-maximum-resolution-of-c-sharp-net-bitmap (Hans Passant's answer) – Dave S Mar 28 '19 at 23:13
-
@StriveSun-MSFT not really a helpful comment. It's pretty clear from the question that they *do* have enough memory to hold the image. Dave S comment has the real answer. – TheNextman Mar 29 '19 at 16:14
-
Thanks guys. I especially appreciate Dave S for his answer. I am coding in C++/Win API, not C#/.NET. If WIC is available there, then that is my next answer – user9778277 Apr 02 '19 at 21:06
-
@user9778277 emmm, I'm sorry to provide you with a link to. net, so did your problem be solved according to the method provided by Dave S? – Strive Sun Apr 03 '19 at 01:13
-
Yes. There is no time to which to WIC, but I will put it on the Task list for next release. – user9778277 Apr 03 '19 at 19:31