Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 752987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:50:42+00:00 2026-05-14T14:50:42+00:00

My program has the feature to export a hi-res image of the working canvas

  • 0

My program has the feature to export a hi-res image of the working canvas to the disk. Users will frequently try to export images of about 20,000 x 10,000 pixels @ 32bpp which equals about 800MB. Add that to the serious memory consumption already going on in your average 3D CAD program and you’ll pretty much guarantee an out-of-memory crash on 32-bit platforms.

So now I’m exporting tiles of 1000×1000 pixels which the user has to stitch together afterwards in a pixel editor. Is there a way I can solve this problem without the user doing any work?

I figured I could probably write a small exe that gets command-lined into the process and performs the stitching automatically. It would be a separate process and it would thus have 2GB of ram all to itself. Or is there a better way still? I’d like to support jpg, png and bmp so writing the image as a bytestream to the disk is not really possible.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T14:50:43+00:00Added an answer on May 14, 2026 at 2:50 pm

    If you want to do it language-agonistic then you only have two options:

    • Either do as you have done or
    • do it as the professional graphics
      applications do it. They keep the
      images on disk in full resolution but
      when loading/saving they don’t
      load/save the complete image at once
      but at runtime create such a
      tile-based approach in memory (and only load/save the parts that are currently relevant).

    The disadvantage of the second aproach is that you have to develop EVERYTHING yourself. You cannot use any OS image handling, image en-/decoders or anything else.

    I had a similar problem some time ago and could solve it by using only 1/16bpp (especially as 32bit for images usually contains 8 completely unused bits which do not need to be held in memory – alpha channel). This means I mostly had layers of 1bpp images. However this obviously only works if you use your own application to consume the images.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a program that needs a feature that has similar functionality as
I'm about to start writing a program which will attempt to extract data from
I am working on an excel bulk upload feature which has to be parsed
Bamboo CI has a build in feature of having the subversion program trigger a
BeyondCompare has this conversion feature which can run an external program on certain file
My android application has a login feature and it is accessing the users information
My program has to use certain files that reside in another directory. Right now
My program has two threads: Main execution thread that handles user input and queues
My program has one dialog and two sockets. Both sockets are derived from CAsyncSocket,
My program has the following class definition: public sealed class Subscriber { private subscription;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.