473,383 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Transparant icons

Hi,

The ImageList class holds a property named
TransparentColor and the Color class defines a color
named Transparent. Where are these colors in the bitmap
editor. I cant see how I can correlate colors in the
bitmap editor to colors in the color class in order not
to get the background of an icon drawn in a control.

Please help
Best
Nov 15 '05 #1
2 1302
You don't have a specific color called the "transparent color" in a
non-alpha bitmap.

What you can do is choose any of the color that you want to be the
transparent color, say, Magenta and use it for the background (or anything
that you want transparent). And then, when you create the bitmap and add it
to the Image List, the chosen color will become transparent wherever you are
blasting this image to.

-vJ

"Jesper" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
Hi,

The ImageList class holds a property named
TransparentColor and the Color class defines a color
named Transparent. Where are these colors in the bitmap
editor. I cant see how I can correlate colors in the
bitmap editor to colors in the color class in order not
to get the background of an icon drawn in a control.

Please help
Best

Nov 15 '05 #2
"Jesper" <an*******@discussions.microsoft.com> wrote:
The ImageList class holds a property named
TransparentColor and the Color class defines
a color named Transparent. Where are these
colors in the bitmap editor.


Pick any unused colour as your image background, then set the ImageList's
TransparentColor property to that colour. The one you choose is up to you.

P.

--
www.CL4.org
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: drum118 | last post by:
Has anyone experience problems with firewall blocking some icons and not others. I am using Zone alarm and have the popup set for medium and it was blocking some of the icons for some strange...
24
by: Crom | last post by:
Ok. I want to settle this once and for all. After looking at the source for various, rather sizeable (but not all were so big) web sites that use icons that show up in the addressbar beside the...
3
by: sto | last post by:
look at this picture http://upload.cs99.net/e.gif i use the function SHGetFileInfo to get file icons. but these icons are not very nice. there are some black things round of the icons. many...
6
by: B-Dog | last post by:
Does anyone know where I can find some professional looking icons that are the standard windows collection for developers? The ones that came on the VS cd are pretty lame. Thanks
17
by: Brett | last post by:
I'd like references on where to find some good (quality) icons to use for form and application icons (for the EXE). Most of the free stuff isn't that great looking and there isn't a good...
6
by: Edwin Knoppert | last post by:
I'm trying to convert an icon handle to GIF. Something like: Public Function GetImageFromIconHandle(ByVal hIcon As Int32) As Int32 Dim ico As Icon = Icon.FromHandle(hIcon) Dim x As New...
1
by: AA Arens | last post by:
In a form, how to have inserted a logo that has a transparant backgroundond? I inserted such a logo but the background is white. Bart (v 2003)
1
by: Jeroen Timmers | last post by:
Hi, I'm trying to place a control onto a form behind a picturebox. Some area's of this picturebox are defined as transparant. Now I run into the problem of not seeing the controls anymore. ...
2
by: SharpCoderMP | last post by:
i'm trying to embed multiple program icons in my executable. the only way so far i managed to do that is to embed native win32 resource file with multiple icons. it works, but... when i create a...
4
by: Sanoski | last post by:
This might be a dumb question. I don't know. I'm new to all this. How do you find icons for your programs? All GUI applications have cool icons that represent various things. For instance, to save...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.