Transparency Detection

If your a member of codenstuff then this is the main place to be. Get together..talk..chat and ponder. Have fun. Chill out. Play games.
9 posts Page 1 of 1
Contributors
User avatar
Cheatmasterbw
Coding God
Coding God
Posts: 1506
Joined: Fri Jan 01, 2010 2:30 pm

Transparency Detection
Cheatmasterbw
If i have the following images...
Image and Image
...How would i save the control box with 100% accurate transparency and color to a .png image?

The two images are identical, except for the control box.

Thanks!
http://www.megaapps.tk/
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

Re: Transparency Detection
Agust1337
could you explain a bit more what you are meaning, i don't understand...
Top-notch casual Dating
User avatar
Cheatmasterbw
Coding God
Coding God
Posts: 1506
Joined: Fri Jan 01, 2010 2:30 pm

Re: Transparency Detection
Cheatmasterbw
i am trying to get the control box (minimize, maximize, close) into a .png image file
i want to make it so in the file, the image may have some transparency. this is very hard to explain, so i dont expect you to get it right away.
http://www.megaapps.tk/
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

Re: Transparency Detection
Agust1337
are you saying you want to make custom close, maximize and minimize buttons?
Top-notch casual Dating
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Transparency Detection
mandai
With png images you get a single colour to choose as the transparency key (e.g. white) - so when that image is placed in front of another image the transparency key colour will not block out the image behind.

If you are looking to base the transparencey key on a source image you can check out the example on how to draw a transparent watermark: viewtopic.php?f=21&t=2315&p=15173#p14535
User avatar
Cheatmasterbw
Coding God
Coding God
Posts: 1506
Joined: Fri Jan 01, 2010 2:30 pm

Re: Transparency Detection
Cheatmasterbw
can i do this with the top of the form, not white?
http://www.megaapps.tk/
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Transparency Detection
mandai
Yes - if it has to be done while the program is running you can use the e.Graphics object in the Paint event for drawing.
User avatar
Cheatmasterbw
Coding God
Coding God
Posts: 1506
Joined: Fri Jan 01, 2010 2:30 pm

Re: Transparency Detection
Cheatmasterbw
sorry i dont understand. do you mind posting an example? thanks for the help.
http://www.megaapps.tk/
User avatar
Livengood
Serious Programmer
Serious Programmer
Posts: 445
Joined: Tue Feb 16, 2010 6:24 am

Re: Transparency Detection
Livengood
its in the form controls for the coding
Image
9 posts Page 1 of 1
Return to “Codenstuff boardroom”