BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TImageList.Draw - scaled

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Florian Haag
Guest





PostPosted: Sat Apr 10, 2004 5:02 pm    Post subject: TImageList.Draw - scaled Reply with quote



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





PostPosted: Sat Apr 10, 2004 11:32 pm    Post subject: Re: TImageList.Draw - scaled Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.