VFast Transparency

02-06-2002, 08:37 AM
I am using a .GIF with a transparent background, on an image control, which has a transparent background.

Loading .GIFs in VB is stupidly slow, but check out this! I have included a timer function, so that you can see just how stupidly fast this is.

Change the value of AAA in the Form_Load() to 300. That results in 3600 48x48 pic moves in ~0.2 sec on my P2-300.

I know this method is not perfect for everyone's needs, but Oh, Man does it fit mine!:D

04-21-2002, 12:10 PM
Are you sure you're not programing a strobe light?

04-21-2002, 01:45 PM
Confucious - please don't dig up ancient threads.... Let this one RIP.

04-22-2002, 07:02 AM
well done

04-24-2002, 07:54 PM
Hooley Dooley this is an old thread. I was very suprised to see it again.

04-26-2002, 04:20 PM
You may want to check out the TransparentBLT API call. It enables you to load bitmaps with a transparent color. It is part of the msimg32 library.

04-26-2002, 04:29 PM
TransparentBLT causes memory leaks.
Making a picture mask and using two BitBlts help conserve your memory.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum