Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-15-2002, 07:28 PM   #1
Member (5 bit)
 
Join Date: May 2002
Location: Mtl,CAN
Posts: 16
VB simple BitBlt animation

I need some advice on animation in vb:
First, can I use other picture types than bitmap (ie jpg) with
bitblt without performance loss?

I just tried a simple animation (with a jpg) with bitblt but it is not perfect "smooth", the images blinks... Is this normal?
If it is, then how can u make smooth animations in VB
(without DirectX)?

(I just put a timer with interval 1 and:
Me.Cls
BitBlt Me.hDC, cont, cont, Picture1.ScaleWidth, Picture1.ScaleHeight, Picture1.hDC, 0, 0, vbSrcCopy
cont = cont + 5)
Its as simple as that but vb still lags!!!!!!
AlexDX is offline   Reply With Quote
Old 07-16-2002, 07:28 AM   #2
Member (10 bit)
 
Join Date: Apr 2001
Location: Michigan
Posts: 850
Send a message via ICQ to HackinCowboy
Check this site. It has a pretty in-depth explanation of BitBlt. Shows you how to load the bitmap into memory. If you need more help just ask.
HackinCowboy is offline   Reply With Quote
Old 07-16-2002, 10:25 AM   #3
Member (5 bit)
 
Join Date: May 2002
Location: Mtl,CAN
Posts: 16
Ok thanks, the tutorial is quite good!
AlexDX is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:19 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2