CB2021 2 Posted December 17, 2022 I am using the VirtualImageList which shows I have access to images 16x16, 24x24, 32x32 and 48x48. The picture below shows a TSpeedButton with the size Width=120 and Height=120. The image from the VirtualImageList is always 16x16. I would like to select the largest image that will fit in the button, in this case 48x48. How do select the image size to use? Can the image size be adjusted automatically? Share this post Link to post
programmerdelphi2k 237 Posted December 17, 2022 (edited) ops! my fault...! Edited December 17, 2022 by programmerdelphi2k Share this post Link to post
Uwe Raabe 2064 Posted December 17, 2022 The TVirtualImageList can only hold images of one size, which it retrieves from a TImageCollection. That works even if the requested size is not available in the collection. In that case one image is scaled to the requested size. To have multiple sizes simultaneously you need separate TVirtualImageList instances. If you need only one size, just set the TVirtualImageList to that size. 1 Share this post Link to post