Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

transparent images

Status
Not open for further replies.

exodus300

Programmer
Mar 22, 2002
262
AU
Is there a way to set a particular color of the picture in an Image which is transparent, so when you place it on top of another image anything underneath that colour will be visible? This would be really helpful. If you don't understand, please ask and I will try to expain it more. [Thanks in advance|Hope I helped you]
Exodus300
World-Wide Alliance of Evil and Twisted People
[red]"Experimentation by Example is the best learning tool" - Exodus300[/red]
Code:
if (pop_tarts == 0)
{
   tantrum = 1;
}
[pc3]
 
What property can I set to choose this colour? There doesn't seem to be an appropriate one for Images. [Thanks in advance|Hope I helped you]
Exodus300
World-Wide Alliance of Evil and Twisted People
[red]"Experimentation by Example is the best learning tool" - Exodus300[/red]
Code:
if (pop_tarts == 0)
{
   tantrum = 1;
}
[pc3]
 

look in help for maskcolor...

ImageList.setMaskColor

Sets the color used to generate masks for images in the image list.

Syntax

public void setMaskColor( Color value )

Parameters

value

A Color object that represents the mask color for images in the image list.

See Also getMaskColor


Also if not origionally using an imagelist in your project you can still use it look in help for "imagelist controls" and the add method.
 
I don't know if you understand.. it's not pics in an image list[/i], just a Image. And the comps I'm working on don't have any help installed :( [Thanks in advance|Hope I helped you]
Exodus300
World-Wide Alliance of Evil and Twisted People
[red]"Experimentation by Example is the best learning tool" - Exodus300[/red]
Code:
if (pop_tarts == 0)
{
   tantrum = 1;
}
[pc3]
 

Let me try to explain what I was trying to get at a little better. If you place an imagelist on your form you can use it for the mask color properties by loading an image into the imagelist then using that image and the mask color property to do you transparency. I know it's not the best solution for you but if you go to microsoft's site you will be able to find all the help on the methods, properties, and controls that you can handle.

Good Luck
 
So where does the ImageList object come from? Is it part of VB6? Coz I don't see it in the list. [Thanks in advance|Hope I helped you]
Exodus300
World-Wide Alliance of Evil and Twisted People
[red]"Experimentation by Example is the best learning tool" - Exodus300[/red]
Code:
if (pop_tarts == 0)
{
   tantrum = 1;
}
[pc3]
 

Right click on your toolbox and select components. Scroll down until you see Microsoft Windows Common Controls (you may see up to 5 different versions). Select either 5.0 or 6.0 and hit ok.
 
omg, and I was thinking i was limited to the few controls there.......... thank you! [Thanks in advance|Hope I helped you]
Exodus300
World-Wide Alliance of Evil and Twisted People
[red]"Experimentation by Example is the best learning tool" - Exodus300[/red]
Code:
if (pop_tarts == 0)
{
   tantrum = 1;
}
[pc3]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top