
10-27-2004, 03:50 PM
|
|
Senior Contributor
Retired Leader * Expert *
|
|
Join Date: Dec 2003
Location: Offline
Posts: 861
|
|
Blt-ing speed
Blt-ing many small blts almost always takes more time then one large one..
However, there are a couple ways that you can "even out" the differences:
1.) You can assembly (Bitblt together) all the small images/sprites/tiles together in a memoryDC backbuffer first, before "flipping" the backbuffer onto the screen (in a form or picturebox control) using Bitblt.
2.) You can use the LockWindowUpdate API to keep the form or picturebox control from updating (re-painting itself) during a series of Bitblt calls.
As regards to sectioning off a part of the picture, the Bitblt API allows for this using the correct dimensional parameters (X,Y values)
|
|