Re: Working with TImageList
- From: Rob Kennedy <me3@xxxxxxxxxxx>
- Date: Wed, 28 Jun 2006 12:40:10 -0500
JamesR wrote:
How do you work with differen't size images with a TImageList.
You don't.
You have
to set the Width and Height, so does this mean each file needs to be
stretched or cropped to fit?
TImageList doesn't work with files. It works with bitmaps. In fact, internally, it only works with one, and then it divides it up into separate images when you tell it to draw something somewhere. TImageList is how the OS deals with images for toolbars, list views, and tree views. It's meant for small images -- icons.
If you want a generic list of images, then use something more like TList.
And "different" is not a contraction. It's all one word, no apostrophe. Just like "went," "spent," and "complement."
--
Rob
.
- References:
- Working with TImageList
- From: JamesR
- Working with TImageList
- Prev by Date: Re: How can I execute a line of code stored in a string?
- Next by Date: Re: TGIFImage and *large* animated GIFs - streaming?
- Previous by thread: Re: Working with TImageList
- Next by thread: TGIFImage and *large* animated GIFs - streaming?
- Index(es):
Relevant Pages
|