I'm in desperate need of an Image control which can display jpgs and bmps with a certain color (255,0,255 in my case) transparented. It has to show other images trough the transparent part and also detect clicks only on the nontransparent part. Anything is appreciated!
You can you this attached control. It was originally programmed by Fox. I made some additions. Choose a picture for the control and set Mask Color property the color you want to be invisible
THE TIME/WEATHER IS
Don't know how to use APIs or have problem with them,
Download API-Guide & API-Viewer from http://www.allapi.net
Wow last time i saw my sprite control was when I put it on the website.. that's years ago
Again note please: The Sprite is a UserControl and it uses MaskPicture and MaskColor to get transparency - this will be very slow if you use big pictures, many pictures or move them around fast. Just for you know... but it works fine and supports clicks
Hello Fox,
I've D/L this control as it looks interesting. I have now put it
in VB. Please could you give me some examples for the
properites and methods as it looks like it supports animation
which is a bonus!
I added the animation
Though I have still not perfected it.
The attached source code is the only copy I have of the sprite.
It is modified a lot. Fox can you please give the original. I need it.
Thanks
THE TIME/WEATHER IS
Don't know how to use APIs or have problem with them,
Download API-Guide & API-Viewer from http://www.allapi.net
Jenk Alert,
Please modify the soucre codes as follows
Code:
Public Property Let TotalFrames(ByVal uTotalFrames As Long)
PropertyChanged "TotalFrames"
TFrames = uTotalFrames
ReDim Pictures(uTotalFrames)
End Property
The array did not get redimmed during runtime
THE TIME/WEATHER IS
Don't know how to use APIs or have problem with them,
Download API-Guide & API-Viewer from http://www.allapi.net