PC Review


Reply
Thread Tools Rate Thread

Alpha channel

 
 
Lespaul36
Guest
Posts: n/a
 
      16th Jul 2004
I want to extract associated folder icons durring runtime and show them in a
treeview control. The XP alpha channel messes that up. Is there a fix or a
way to remove the alpha channel?


 
Reply With Quote
 
 
 
 
Mick Doherty
Guest
Posts: n/a
 
      16th Jul 2004
http://dotnetrix.co.uk/misc.html -- > Get Alpha Bitmap from 32 bit Icon.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html


"Lespaul36" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> I want to extract associated folder icons durring runtime and show them in

a
> treeview control. The XP alpha channel messes that up. Is there a fix or

a
> way to remove the alpha channel?
>
>



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      16th Jul 2004
* "Lespaul36" <(E-Mail Removed)> scripsit:
> I want to extract associated folder icons durring runtime and show them in a
> treeview control. The XP alpha channel messes that up. Is there a fix or a
> way to remove the alpha channel?


<URL:http://vbaccelerator.com/article.asp?id=4302>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
Lespaul36
Guest
Posts: n/a
 
      16th Jul 2004
Thanks for the reply, but still having prob. It works fine if I save the
icon to the imagelist and then clean it and display it in a picture box.
but I can't seem to clean it to use on a treeview control. It is a little
better, but still has a border, but I think it is blue.
"Mick Doherty"
<EXCHANGE#(E-Mail Removed).[mdaudi100#ntlworld.com]> wrote in
message news:(E-Mail Removed)...
> http://dotnetrix.co.uk/misc.html -- > Get Alpha Bitmap from 32 bit Icon.
>
> --
> Mick Doherty
> http://dotnetrix.co.uk/nothing.html
>
>
> "Lespaul36" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > I want to extract associated folder icons durring runtime and show them

in
> a
> > treeview control. The XP alpha channel messes that up. Is there a fix

or
> a
> > way to remove the alpha channel?
> >
> >

>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004
>
>



 
Reply With Quote
 
Mick Doherty
Guest
Posts: n/a
 
      16th Jul 2004
That's a problem with the Imagelist control. Sorry, but I don't know of a
solution.
Maybe an API created Imagelist will behave better.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html


"Lespaul36" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks for the reply, but still having prob. It works fine if I save the
> icon to the imagelist and then clean it and display it in a picture box.
> but I can't seem to clean it to use on a treeview control. It is a little
> better, but still has a border, but I think it is blue.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004


 
Reply With Quote
 
Lespaul36
Guest
Posts: n/a
 
      17th Jul 2004
Is there a way to programically make it white or something. I don't need it
to be transparent. I have tried to add a manifest and it helped a bit, now
the poblem is mostly at the top of the icon.

I sure hope they come out with a control update that will fix this.
"Mick Doherty"
<EXCHANGE#(E-Mail Removed).[mdaudi100#ntlworld.com]> wrote in
message news:(E-Mail Removed)...
> That's a problem with the Imagelist control. Sorry, but I don't know of a
> solution.
> Maybe an API created Imagelist will behave better.
>
> --
> Mick Doherty
> http://dotnetrix.co.uk/nothing.html
>
>
> "Lespaul36" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Thanks for the reply, but still having prob. It works fine if I save

the
> > icon to the imagelist and then clean it and display it in a picture box.
> > but I can't seem to clean it to use on a treeview control. It is a

little
> > better, but still has a border, but I think it is blue.

>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004
>
>



 
Reply With Quote
 
Lespaul36
Guest
Posts: n/a
 
      17th Jul 2004
I have been trying to make a imagelist with APIs..is there a tutorial
anywhere. I am not having much luck finding one.

TIA

"Lespaul36" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is there a way to programically make it white or something. I don't need

it
> to be transparent. I have tried to add a manifest and it helped a bit,

now
> the poblem is mostly at the top of the icon.
>
> I sure hope they come out with a control update that will fix this.
> "Mick Doherty"
> <EXCHANGE#(E-Mail Removed).[mdaudi100#ntlworld.com]> wrote

in
> message news:(E-Mail Removed)...
> > That's a problem with the Imagelist control. Sorry, but I don't know of

a
> > solution.
> > Maybe an API created Imagelist will behave better.
> >
> > --
> > Mick Doherty
> > http://dotnetrix.co.uk/nothing.html
> >
> >
> > "Lespaul36" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Thanks for the reply, but still having prob. It works fine if I save

> the
> > > icon to the imagelist and then clean it and display it in a picture

box.
> > > but I can't seem to clean it to use on a treeview control. It is a

> little
> > > better, but still has a border, but I think it is blue.

> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004
> >
> >

>
>



 
Reply With Quote
 
Mick Doherty
Guest
Posts: n/a
 
      17th Jul 2004
I just tried it out and the Icon draws OK in a Treeview Control from an
ImageList, but not on some other controls such as Label.

Have you set the ImageList's ColorDepth to Depth32Bit?
Are VisualStyles Enabled in your App?

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004


 
Reply With Quote
 
Lespaul36
Guest
Posts: n/a
 
      17th Jul 2004
I have the imagelist ColorDepth set to Depth32Bit
I added the line Application.EnableVisualStyles() to the load event of my
usercontrol. still the same thing am I missing anyting?

I am a bit new to the .Net side sorry for all the questions.
Thanks again.
"Mick Doherty"
<EXCHANGE#(E-Mail Removed).[mdaudi100#ntlworld.com]> wrote in
message news:utiTqg%(E-Mail Removed)...
> I just tried it out and the Icon draws OK in a Treeview Control from an
> ImageList, but not on some other controls such as Label.
>
> Have you set the ImageList's ColorDepth to Depth32Bit?
> Are VisualStyles Enabled in your App?
>
> --
> Mick Doherty
> http://dotnetrix.co.uk/nothing.html
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004
>
>



 
Reply With Quote
 
Mick Doherty
Guest
Posts: n/a
 
      17th Jul 2004
"Lespaul36" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have the imagelist ColorDepth set to Depth32Bit
> I added the line Application.EnableVisualStyles() to the load event of my
> usercontrol. still the same thing am I missing anyting?
>
> I am a bit new to the .Net side sorry for all the questions.
> Thanks again.


Application.EnableVisualStyles should be in Sub Main(). It should be the
first method called by your application, it is not meant for user controls.

Add the following to the Main Form of your application replacing MainForm
with the name of your startup form which would be Form1 by default.

Shared Sub Main()
Application.EnableVisualStyles()
Application.DoEvents()
Application.Run(New MainForm)
End Sub

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the icon with alpha channel using ExtractIconEx api? yxq Microsoft VB .NET 0 6th Apr 2006 07:16 AM
Transparent Splash Screen using Alpha channel? =?Utf-8?B?R3JhcGhpY3NfbWFzdGVy?= Microsoft Dot NET 0 8th Aug 2005 06:05 PM
Draw without Alpha Channel? Raymond Walsh Microsoft Dot NET 0 4th Nov 2004 06:12 PM
Alpha Channel =?Utf-8?B?QmlsbCBFbmdsaXNo?= Microsoft C# .NET 3 7th Jun 2004 09:00 PM
Wrong alpha channel in ListView =?Utf-8?B?U2FtIEZpc2hlcg==?= Microsoft Dot NET 0 15th Apr 2004 02:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:11 AM.