Problems with creating very big images
-
I try to use CImage class for making images, but when i try to create very big images, for example 20 000 X 20 000, the method Create fails. I wrote 2 different applications, one - is stand alone application, and another one is COM object. All the functionality of both programs are same. So in stand alone application i can create image with such dimensions, but when i use COM my method fails. Why does it happens? And how can I solve this problem?
-
I try to use CImage class for making images, but when i try to create very big images, for example 20 000 X 20 000, the method Create fails. I wrote 2 different applications, one - is stand alone application, and another one is COM object. All the functionality of both programs are same. So in stand alone application i can create image with such dimensions, but when i use COM my method fails. Why does it happens? And how can I solve this problem?
But why you want to make 20000x20000 image?
-
But why you want to make 20000x20000 image?
reasonable question:) Thanks:) I now that there is no reason to create images with size more than size of monitor resolution... And i know that I can programmatically capture sections frow wall image and show them on monitor separetly. But as always - i try to find the easiest way:) And why in stand alone application i don't have such problems? Thantks for participation:)
-
reasonable question:) Thanks:) I now that there is no reason to create images with size more than size of monitor resolution... And i know that I can programmatically capture sections frow wall image and show them on monitor separetly. But as always - i try to find the easiest way:) And why in stand alone application i don't have such problems? Thantks for participation:)
I was deciding to suggest this way but you used of it previous but I think also its a good way.;)
-
I try to use CImage class for making images, but when i try to create very big images, for example 20 000 X 20 000, the method Create fails. I wrote 2 different applications, one - is stand alone application, and another one is COM object. All the functionality of both programs are same. So in stand alone application i can create image with such dimensions, but when i use COM my method fails. Why does it happens? And how can I solve this problem?
Step into the creation code in CImage. Look for the function that fails. I would guess CreateDIBSection() is failing because it can't get a big enough block of memory. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: