supermova
Dec 15th, 2000, 10:40 AM
i need to for my game to be have a background that is the same tile much as webpage that the background is too small to fill a page.
Fox
Dec 15th, 2000, 12:02 PM
I dont know about other people but I do not understand this question...
Arcom
Dec 16th, 2000, 05:48 PM
Same goes for me here...
Let me guess...you need a background from some web page for a game, but the picture you have is too small and you want to create background like IE does? If that's the case, then here's the code:
For i = 0 To picSurface.Width Step picImage.Width
For j = 0 To picSurface.Height Step picImage.Height
picSurface.PaintPicture picImage.Picture, i, j
Next j
Next i
picSurface is the PictureBox (or Form) on which the picture should be painted, and the picImage is a PictureBox (or an Image control) containing that picture.