 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Florian Haag Guest
|
Posted: Sat Apr 10, 2004 5:02 pm Post subject: TImageList.Draw - scaled |
|
|
Hi,
what's the best way to draw an image from an image list scaled?
I'm going to write a toolbar component that can display the button
glyphs in other sizes (like in MS Office, where you can check
"large images"), while the actual image list keeps the small
images (need that for menu glyphs that keep their size).
I guess, storing two differently-sized image lists at a time would
be the worst solution.
I know how to get a single bitmap from the image list and draw
it via StretchDraw, but I'm not sure how to mask it correctly as
it was saved in the image list (TransparentColor doesn't seem
to work too well esp. for 24bit-BMPs sometimes ...).
I'm using D7 Pro.
TIA
-- Florian Haag
|
|
| Back to top |
|
 |
Roy Magne Klever Guest
|
Posted: Sat Apr 10, 2004 11:32 pm Post subject: Re: TImageList.Draw - scaled |
|
|
Hi Florian,
| Quote: | I guess, storing two differently-sized image lists at a time would
be the worst solution.
|
AFAIK that is the solution most developers use.
Kind Regards
Roy Magne Klever
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|