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 

Placing multiple bitmaps on a form at runtime

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Randy
Guest





PostPosted: Wed Nov 30, 2005 4:24 am    Post subject: Placing multiple bitmaps on a form at runtime Reply with quote



I want to place bitmaps in a matrix pattern on a form. I don't know how
big the matrix will be until runtime. Do I need to create a TImage for
each bitmap and position it appropriately on the form? If so, is it
possible to make a two dimensional array from TImage?

Thanks
Back to top
Steve Aletto
Guest





PostPosted: Wed Nov 30, 2005 9:01 am    Post subject: Re: Placing multiple bitmaps on a form at runtime Reply with quote



Quote:
Do I need to create a TImage for each bitmap and position it
appropriately on the form?

It's one way, but placing TImages could be useful only if you
really need such a component. Another solution is to keep the
bitmaps in memory and paint them on the form's canvas through
Form->Canvas->Draw(x, y, bitmap).

Quote:
If so, is it possible to make a two dimensional array from
TImage?

I think so, yes.

HTH,

Steve.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (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.