user741875
user741875

Reputation:

TImageList limit?

Is there a limit as to how many bitmaps can be stored inside a TImageList?

By limit I mean the amount of bitmaps it can hold, and or the memory size of the Image List.

Thanks.

Upvotes: 4

Views: 1149

Answers (2)

Frederik Slijkerman
Frederik Slijkerman

Reputation: 6529

Internally the image list is implemented by Windows to store all images in one big bitmap. Your display device driver probably has a maximum bitmap size, and this limits the number of images you can put in an image list. Fortunately this limit has gone way up since Windows Vista. Anyway, you'll find that the limit is device-dependent.

Upvotes: 6

LeleDumbo
LeleDumbo

Reputation: 9340

AFAIK no, but technically it's 2GB because the type of the index (LongInt, Integer actually, but Integer is mapped to LongInt anyway).

Upvotes: 0

Related Questions