mIRC Home    About    Download    Register    News    Help

Print Thread
#194384 03/02/08 01:24 PM
O
oliverw92
oliverw92
O
Well i was playing around with picwins the other day, making a game, and tried to use transparent PNG's. Of course, this didnt work. I think it would greatly improve the uses of picwins if transparent PNG's were supported. and, indeed i think it would make picwins even better if there was a transparency parameter in the picwin commands.

for example:

Syntax:

Code:
/drawrect -ihnrfecda @ <color> [<transparency percentage>] <size> <x y w h> [<x y w h>...]

(-a is transparency switch)


Code:
/drawrect -fa @test 4 50 2 0 0 50 50


This would draw a filled red square 50px by 50px in window @test at point 0 0 with 50% transparency and size 2.


Code:
/drawtext -a @test 6 70 arial 12 0 0 This is some transparent text!


This would write This is some transparent text! in purple at 0 0 on window @test with 70% transparency and in arial size 12.


I think this could make picwins much more useable, since u could layer images etc. you could create realistic light and such.

Transparent PNG's are used alot now in the graphics world, and making mirc support them would also greatly improve the usage of picwins.

Joined: Apr 2004
Posts: 755
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 755
If added it be nice,

Whats more important to me is alpha transparency support on PNG is supported in general rather then manually setting the transparency on the whole image.

Joined: Aug 2007
Posts: 331
F
Pan-dimensional mouse
Offline
Pan-dimensional mouse
F
Joined: Aug 2007
Posts: 331
transparent pix would be nice, but creating trans text is easy, just create an formula for it.. i have one that gets 50% trans... i might be able to modify it..

and u can set transparency.. only to single parts of images, but then thats where superior picwin skills come in.. and if you look at some of these games from picwin.tk, they have some pretty realistic lighting effects

Last edited by foshizzle; 04/02/08 03:45 PM.
Joined: Apr 2004
Posts: 755
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 755
transparency is not alpha-transparency.

The -i switch is brilliant to fake see through, but its still not the same.

Joined: Aug 2007
Posts: 331
F
Pan-dimensional mouse
Offline
Pan-dimensional mouse
F
Joined: Aug 2007
Posts: 331
yes, but i dont really like the -i switch

and, if it was alpha transparency, it would be 0-255 lol

Last edited by foshizzle; 05/02/08 12:19 AM.
Joined: Apr 2004
Posts: 755
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 755
The fact he wanted 50% already makes it alpha-transparency (translucency) , transparency is either full (0%/0) or see trough (100%/255). Whether you specify it in percentile or as a numeric range doesn't matter.

Joined: Aug 2007
Posts: 331
F
Pan-dimensional mouse
Offline
Pan-dimensional mouse
F
Joined: Aug 2007
Posts: 331
i know, but if u really wanted tranparecy to go along with rgb format(mIRCs color style) u use 0-255
so like $rgba(255,255,255,255) is pure opaque white

Last edited by foshizzle; 05/02/08 08:49 PM.
Joined: Aug 2006
Posts: 182
T
Vogon poet
Offline
Vogon poet
T
Joined: Aug 2006
Posts: 182
I just wanted to say this would be a GREAT thing to implement. I've been toying around with picwins and being able to get translucency would ROCK.

Joined: Aug 2007
Posts: 331
F
Pan-dimensional mouse
Offline
Pan-dimensional mouse
F
Joined: Aug 2007
Posts: 331
its not necissary.. just create your own method... because it would prob. screw up the scripts


Link Copied to Clipboard