Post news Report RSS Slaying the Scale Monster 2

Intro Previously in Black of Space.... I am having memory issues with simply scaling the images up by factors of 10 and 100. Therefore, a solution needs to be found or zooming in will not happen.

Posted by on

Intro
Previously in Black of Space....

I am having memory issues with simply scaling the images up by factors of 10 and 100. Therefore, a solution needs to be found or zooming in will not happen.

And Now the Continuation
My current thinking is to split the images into grids of images, 256 rows and 256 collumns. Then each one can be scaled independently and ignored if it is off the screen. A simplified version, with only 3 rows and 3 columns, is shown:


This would allow me to use each image as its own rectangle, and only scale/render it if it is on screen. This means that the total memory consumption should be low enough not to pose problems and will allow zooming in to the 1 pixel = 1 meter scale.

This would be applied to all the images except for units, which are small enough to not pose an issue. The drawing and scaling for the compound image scheme is not complex, however splitting the images is the hard task.

Splitting Woes
Have you ever tried splitting an image manually? It's too tedious. I need a tool or GIMP script that will do it for me, but have not been able to find any yet. Imagesplitter is promising, but I do not have 24 dollars.

I simply need to find or write a program or script that automatically splits images via a grid. Although the grid does not need to be perfect, my code can tolerate irregular chunks, the task of splitting the image into hundreds to thousands of images is not doable by hand.

If you know of a program that can make my life easier, please let me know.

Thank You
Good show, Thank you for watching BoS, and I want your feedback!

Post comment Comments
dirtbag007
dirtbag007 - - 521 comments

C# has it natively built in, but I assume you aren't coding in C#?

Reply Good karma Bad karma+1 vote
dirtbag007
dirtbag007 - - 521 comments

scrap this comment, since I didn't read the other newspost.

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: