| | |
Please help with colour Transparency...
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Apr 2007
Posts: 22
Reputation:
Solved Threads: 0
I am trying to make a game using VB... I am making frogger... and when he is on the grass I want the colour around the frog to be green then grey when he is on the road... so instead of setting the colour for each of them and having separate sprites(images) for each change and adding 200+ lines to the code. Is there a way to set the background colour of the image to transparent??????????
•
•
Join Date: Apr 2007
Posts: 43
Reputation:
Solved Threads: 3
of course there is... by the way what code are you using in displaying the image... is it in a picture box? or directly drawn in the form...
my suggestion is use first a USERCONTROL...
create an image, make the background of the image MAGENTA!!!!
for masking issues.. save it to bmp for high resolution.
set the maskimage property to your image and mask color to the background of your image(ex MAgenta)..
if my explanation is not good.. try vbcode.com and look for a game that do ttransparency.. theres a lot there..
i hope it helps
my suggestion is use first a USERCONTROL...
create an image, make the background of the image MAGENTA!!!!
for masking issues.. save it to bmp for high resolution.
set the maskimage property to your image and mask color to the background of your image(ex MAgenta)..
if my explanation is not good.. try vbcode.com and look for a game that do ttransparency.. theres a lot there..
i hope it helps
![]() |
Similar Threads
- Vertical colour lines on whole screen..please help (Monitors, Displays and Video Cards)
- How do you design cool programs/websites i.e. colour, shapes etc... (HTML and CSS)
- Gif and transparency (Site Layout and Usability)
- Colour Printer won't print all colours (USB Devices and other Peripherals)
- I can't fix the changed colour settings of xp (Windows NT / 2000 / XP)
- Some of XP folder icons have changed their colour appearence (Windows NT / 2000 / XP)
- start menu transparency in XP (Windows NT / 2000 / XP)
- changing desktop icons text colour (Windows NT / 2000 / XP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: question in using the data control
- Next Thread: Making intractive graphics
Views: 1503 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





