Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tiling a form with a bitmap

Status
Not open for further replies.

Wings

Programmer
Feb 14, 2002
247
US
Hi,
Does any one have any idea how to go about tiling a form with a bitmap. Any clues as to where to start would be appreciated.

Thanks
 
I haven't tried, but here is what you should do :
1. You should intercept windows' erase-background message which tells form to redraw its background.
2. In answer to this message you should use some of TBitmap methods to copy picture on form's canvas. This should be simple when you know dimension of both form and bitmap.
Anyway, I am not completly sure about this, but you should give it a try :)
 
Tiling as in displaying a series of images as opposed to stretching one single to fit.

get the forms size and by use of division discover how many of the bitmaps of a certain size to display. create as many bitmap objects as you need. and initialize them as needed.
you have to code it properly to position each bitmap properly. I think you can even use the assign method to simplify things.

Its just food for thought..

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top