mIRC Home    About    Download    Register    News    Help

Print Thread
#236052 31/01/12 02:38 AM
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
I was redoing my toolbar when I stumbled upon this. mIRC does not handle .png files with alpha-blend/transparentcy correctly in the toolbar:

The purple/pink area is infact supposed to be semi-transparent.

Note: They DO draw correctly to @picwin

Last edited by FroggieDaFrog; 31/01/12 05:49 AM.

I am SReject
My Stuff
Joined: Dec 2002
Posts: 5,430
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,430
Thanks, if you can provide a link to the toolbar PNG file that reproduces this issue, I will download it and test it out to see why that is happening.

Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
Direct Link

Image: (Hard to see on white bg)


I am SReject
My Stuff
Joined: Dec 2002
Posts: 5,430
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,430
Just to clarify: how are you loading this into the toolbar? Are you using a script and adding it as an icon? If so, can you provide a small example script that reproduces the method?

Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
Was just testing from the editbox using:
Code:
//toolbar -p connect $qt($mircdirimages\toolbar\connect.png)

Last edited by FroggieDaFrog; 03/02/12 04:06 PM.

I am SReject
My Stuff
Joined: Dec 2002
Posts: 5,430
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,430
Thanks, this behaviour is actually by design. The toolbar bitmaps in mIRC use $rgb(255,0,255) as the transparency color, this is why the alpha channel pixels are tinted pink in this case. You can reproduce this in @windows using /drawpic -t with $rgb(255,0,255). One solution would be to add a /toolbar switch that loads the bitmap without $rgb(255,0,255) as the transparency color. I have added this to my to-do list.

Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
Thank you smile


I am SReject
My Stuff

Link Copied to Clipboard