- Messages
- 34,981
- Country

Over the past several versions of ADE we have made attempts to improve the handling of background images.
What follows is a catolog of my 'ignorance'
The first attempt was to limit the size of the incoming image. This is relevant up to a point but is a by product of the real cause of image handling problems.
The next attempt was to use a quality factor to try and encode the image to use less memory. As far as I can tell this is a complete waste of effort.
The third attempt was to 'resample' the image to have it match the actual display size of the image in ADE. This will work to some extent if a large or high quality image is being used. Part of the resample attempts to change the number of bytes used per pixel for things like color. This caused a different set of fails and I missed the obvious that images in ADE are all about the memory needed to store them.
Finally thanks to the last round of problem images and realizing (after trying to understand the issues with an image to be sized to 10km on a side) that the real problem is how much memory the underlying windows graphics needs to display an image. Generally each pixel can have anywhere between 1 and 8 bytes per pixel. In ADE a pixel represents 1m x 1m so a 10km square needs 10,000 x 10,000 x number of bytes per pixel of memory. This also has to be in one chunk so if the graphics engine can't find a single block of memory that might be over 400Mb then it fails.
So how to solve this. Well practically a number of small background images would be better than one large one. Also these should cover the airport and not a lot of surrounding real estate.
Reducing the color depth from a standard 4 bytes per pixel to 2 allowed me to increase the image size to 20km square at reduced image quality and color depth. However performance of the graphics engine that ADE uses is total crap with this size of image.
So to the questions:
What do y'all want ADE to do?
Stop the loading of large images? Well it has to do that since the underlying graphics throws an error.
Allow users to try and load images to cover larger areas by reducing the color information in the image
Or......
Certainly warnings will now be based on the area an image is being asked to cover rather than the size of file on disk.
What follows is a catolog of my 'ignorance'
The first attempt was to limit the size of the incoming image. This is relevant up to a point but is a by product of the real cause of image handling problems.
The next attempt was to use a quality factor to try and encode the image to use less memory. As far as I can tell this is a complete waste of effort.
The third attempt was to 'resample' the image to have it match the actual display size of the image in ADE. This will work to some extent if a large or high quality image is being used. Part of the resample attempts to change the number of bytes used per pixel for things like color. This caused a different set of fails and I missed the obvious that images in ADE are all about the memory needed to store them.
Finally thanks to the last round of problem images and realizing (after trying to understand the issues with an image to be sized to 10km on a side) that the real problem is how much memory the underlying windows graphics needs to display an image. Generally each pixel can have anywhere between 1 and 8 bytes per pixel. In ADE a pixel represents 1m x 1m so a 10km square needs 10,000 x 10,000 x number of bytes per pixel of memory. This also has to be in one chunk so if the graphics engine can't find a single block of memory that might be over 400Mb then it fails.
So how to solve this. Well practically a number of small background images would be better than one large one. Also these should cover the airport and not a lot of surrounding real estate.
Reducing the color depth from a standard 4 bytes per pixel to 2 allowed me to increase the image size to 20km square at reduced image quality and color depth. However performance of the graphics engine that ADE uses is total crap with this size of image.
So to the questions:
What do y'all want ADE to do?
Stop the loading of large images? Well it has to do that since the underlying graphics throws an error.
Allow users to try and load images to cover larger areas by reducing the color information in the image
Or......
Certainly warnings will now be based on the area an image is being asked to cover rather than the size of file on disk.




