I have an Eclipse RCP application that displays many (10k +) small images next to each other, for example, with a strip for a movie. For each image, I use a SWT object Image. It uses an excessive amount of memory and resources. I am looking for a more efficient way. I thought about taking all these images and combining them, creating an object ImageDatafor the correct general concatenated width (with a constant height) and using setPixel()for the rest of the pixels. However Palette, used in the constructor ImageData, I cannot understand.
I also looked for SWT tile or mosaic functions to create a single image from a group of images, but didn't find anything.
Any ideas how I can efficiently display thousands of small images next to each other? Please note that after the images are displayed, they are not processed, so this is a one-time cost.
Brian source
share