I have an Eclipse RCP application that displays a lot (10k+) of small images next to each other, like a film strip. For each image, I am using a SWT Image
object. This uses an excessive amount of memory and resources. I am looking for a more efficient way. I thought of taking all of these images and concatenating them by creating an ImageData
object of the proper total, concatenated width (with a constant height) and using setPixel()
for the rest of the pixels. However, the Palette
used in the ImageData
constructor I can't figure out.
I also searched for SWT tiling or mosaic functionality to create one image from a group of images, but found nothing.
何千もの小さな画像を効率的に並べて表示する方法はありますか? 画像が表示されると操作されないため、これは 1 回限りのコストであることに注意してください。