PDA

Click to See Complete Forum and Search --> : StretchBlt/PaintPicture...


git
Jan 8th, 2001, 11:51 PM
Hiyas,

Here's what I'm doing. I open a picture up into a hidden picturebox, called TileSource. The image is 640 * 480 pixels. It's 20 tiles across and 15 down (32x32 pixel tiles).

I want to shrink the entire image 1/4 the size, so the 32x32 pixel tiles become 24x24. Which is the best method - StretchBlt or PaintPicture, and how would I do this? (I only really know BitBlt)

plenderj
Jan 9th, 2001, 09:57 AM
Hi there,

I'd just shrink the image in a graphics program.
Image manipulation on the fly is quite processor intensive and a nono (imho) for games.

- jamie.

git
Jan 9th, 2001, 06:55 PM
Actually it's a game editor, so speed doesn't matter. =) (and shrinking before load is out of the question too)

plenderj
Jan 10th, 2001, 01:57 AM
You may want to check out :
http://www.vbexplorer.com/game_tutorials.asp

Specifically 'Animation + Drawing' > 'Drawing + Animation 2'

That has some stuff on stretchblt

- jamie