VFast Transparency

AcidBoot
02-06-2002, 07: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

CoNFuCiOuS
04-21-2002, 11:10 AM
Are you sure you're not programing a strobe light?

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

Kitaiko
04-22-2002, 06:02 AM
well done

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

cBrewer2
04-26-2002, 03: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.

Iceplug
04-26-2002, 03: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