Scrolling Bitmap

Scrolling Bitmap

Post by Chris Karanicola » Mon, 09 Aug 1999 04:00:00



I was wondering if there is a specialized function for scrolling a
bitmap.. In otherwords i want to drop the last row of pixels off the
bitmap, push every remaining row of pixels down 1, and then insert a new
row at the top of the bitmap.

I've done it using a simple memcopy, but i was wondering if there is a
faster method that is available.

 
 
 

Scrolling Bitmap

Post by Damon Chandle » Wed, 11 Aug 1999 04:00:00


Hi Chris,

Quote:> I've done it using a simple memcopy, but i was wondering if there is a
> faster method that is available.

I'm not completely sure, but I think your method (copying bits) is the fastest.
The only other method that comes to mind is to use a strategic BitBlt() --
copying the upper bits one pixel down, then accessing and changing the first
scanline.

Good luck!

--------------------------------------
Damon Chandler

http://bcbcaq.freeservers.com
Answers to <Commonly Asked Questions>

 
 
 

1. Problem showing a scrolling bitmap in picturebox

Hi all,

I have a form with 1 picturebox (picposter1) and 1 commandbutton
(cmdscroll).  The picture-size is greater than the height of the picturebox,
width is the same.

Problem:  If I push the 'Scroll'-button, I want the picture to scroll
vertically (up or down) in the picturebox.
When 1 bitmap-row scrolls out of the boundaries from the picturebox, it has
to appear again on the other side.
You can compare this animation like a wheel (reel) from a casino
slotmachine.
Next step is to have 1 bitmap consisting of several pictures to animate
vertically in the picturebox.

Who can help me out?

__________________________________________________________________ Marco P
ICQ#: 93734549 Current ICQ status: + More ways to contact me
__________________________________________________________________

2. Graphic Packages

3. VERY LARGE BITMAP SCROLLING.

4. Add new Plugin in Modeler MAC

5. Bitmap con Barras de Scroll

6. Basic help for LW5 available, if needed !!!!!!

7. Bitmap scrolling in 640x480x256

8. Help for scrolling and Bitmap mouse cursor in pascal

9. Scrolling a fat bitmap in mode 13h

10. Bitmap scrolling

11. Scrolling a small window on a large Bitmap

12. Scrolling a bitmap.