Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Problems with creating very big images

Problems with creating very big images

Scheduled Pinned Locked Moved C / C++ / MFC
questioncomhelptutorial
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rassul Yunussov
    wrote on last edited by
    #1

    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?

    H M 2 Replies Last reply
    0
    • R Rassul Yunussov

      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?

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      But why you want to make 20000x20000 image?

      R 1 Reply Last reply
      0
      • H Hamid Taebi

        But why you want to make 20000x20000 image?

        R Offline
        R Offline
        Rassul Yunussov
        wrote on last edited by
        #3

        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:)

        H 1 Reply Last reply
        0
        • R Rassul Yunussov

          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:)

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          I was deciding to suggest this way but you used of it previous but I think also its a good way.;)

          1 Reply Last reply
          0
          • R Rassul Yunussov

            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?

            M Offline
            M Offline
            Mark Salsbery
            wrote on last edited by
            #5

            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:

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups