Sprite Animation

There are 3 parts to this question which each relate to this sprite query.

Initially, I would like to refer to the use of the picture box as a way to create a sprite through the API call BItBlt. I would like to know if it possible to store the BITMAP as some kind of data structure without having to actually have it loaded on the screen.

The second question relates to the ability to access the icons on the desktop, through an API call, or perhaps through .INI.

The third question which does not relate exactly to sprite, but to the use of the Joystick API functions and a way access a joystick through development in VB 32bit and not just VB 16 bit. The reason as to why it works only in 16 bit I am aware of so if this is your answer, don't bother, I need a solution to being able to develop with 32 bit and accessing the joystick


even032597Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

andyb013197Commented:
Yes it is possible to store the bitmap as a 'data structure'. Thats how its stored internally anyway when you see the term 'handle to a bitmap' HBITMAP in the api documentation. However I generally tend to use stretchdibits more than bitblt and pass the api the address of the bitmap bits (and also header) instead. This can all be done through VB with some work.

More than that I cant say, it depends on what you want to do..

You may get more response from others by upping your points though!


0
even032597Author Commented:
Any examples would be greatly appreciated.
0
timbo032697Commented:
I'm trying to do exactly what you asked. What you need to do is set up a memory device context using the CreateCompatibleDC API function. Then BitBlt the bitmap into the memory DC. That's the easy part. The hard part is writing the routine that reads a bitmap file. You'll need to use the CreateDIBitmap function and the BITMAPINFOHEADER & BITMAPINFO structures. It's really too complicated to discuss here. Check out my animation tutorial at http://www.geocities.com/SiliconValley/Park/3269 or email me.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
timbo032697Commented:
I figured out how to do the first part of your question. Depending on what you're trying to accomplish, I have three different solutions. I believe it's worth more than fifty points, though. Whaddaya think?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.