Solved

Moving bmps around the screen

Posted on 1998-08-14
8
139 Views
Last Modified: 2010-04-30
Hello
When i move a bmp around the screen, this bmp dont move fine... a rare effect appear... anyone can tell me how to eliminate this effect?
thanks and regards
0
Comment
Question by:amanuelx
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 2

Expert Comment

by:cantrell
ID: 1468918
I'm not quite sure what you mean by a "rare effect?" If you can tell me what the "rare effect" is maybe I can help. In the meantime, make sure you are using the bmpname.move command. If not, try that. It's: bmpname.move left, top, width, height.

Cantrell
0
 

Author Comment

by:amanuelx
ID: 1468919
My problem is a horrible screen flicker when i move pictures around the screen...
regards
0
 
LVL 2

Expert Comment

by:cantrell
ID: 1468920
Does the entire screen flicker or just your bitmap? Are you using a image or picturebox control? How are you moving it?
0
 

Author Comment

by:amanuelx
ID: 1468921
hello
It's only the image and we use the move statement.
But, how to eliminate the flicker in all cases?
thanks and regards
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:nilos
ID: 1468922
Please add the following variables:

a) BMP color deep (How many colors)
b) Screen color deep
c) Type of VGA card, OS type and CPU speed

TIA
0
 
LVL 1

Expert Comment

by:nilos
ID: 1468923
Please add the following variables:

a) BMP color deep (How many colors)
b) Screen color deep
c) Type of VGA card, OS type and CPU speed

TIA
0
 

Expert Comment

by:e_norrman
ID: 1468924
use the bitblt funktion , and copy the bmp into a new picture box,erase the old and then copy again to new place , this is use to move sprites , hmmm your question is a little short..
search on sprites and vb on the internet and you maybe find a exemple on bitblt.
0
 
LVL 14

Accepted Solution

by:
waty earned 100 total points
ID: 1468925
Go to my website, you will find a complete ScreenSaver written in VB5, and there is a lot of bitmaps (sprites) moving on the screen. The full source code is provided :

http://www.geocities.com/ResearchTriangle/6311/ 

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
A macro to Count the number of rows across all worksheets 3 83
MS Access Search and Replace Using VBA 6 57
Sending a email via excel using vba 6 72
Advice in Xamarin 21 57
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now