Entwickler-Ecke

Grafische Benutzeroberflächen (VCL & FireMonkey) - Anyone imagine how this COLOR feature was implemented ...


joelrodrigues - Mo 08.01.07 02:47
Titel: Anyone imagine how this COLOR feature was implemented ...
TITLE: Anyone imagine how this COLOR feature was implemented in this software?

Hi folks,

Take a look at this images:
=================
http://www.crytek-online.com/images/help/kview_01.jpg
http://www.crytek-online.com/images/help/kview_02.jpg
http://www.crytek-online.com/images/help/kview_03.jpg
http://www.crytek-online.com/images/help/kview_04.jpg
http://www.crytek-online.com/images/help/kview_05.jpg


In this software, you can choose the color using a COLOR PALETTE. Notice how the color fills completely the mouse choosen button as well has a great final quality.

My question is: do you know how the person who developed could fill each mouse button perfectly? I don´t know if he is using a TImage component, but the color fills the entire image button... Any idea? Do you how to implement this using Delphi? If no, do you know any component that could implement that?

I don´t really mind about the COLOR PALETTE. My question is related how the developer fills each mouse button with a different color which can be choosen dynamically.

Best regards!


freedy - Mo 08.01.07 10:27

HI!

I don't think this would be easy to implement. Look at the picture. There is still a shadow. Perhaps he uses the alpha channel.

Greetings.


joelrodrigues - Mo 08.01.07 13:23

lol... Yes, i know.


freedy - Mo 08.01.07 13:43

So, what's your problem? You only have to search for a component which can display images with alpha channel (like *.png).
Then choose some panels, put your image component over them (not upon) that's it. Tricky... Perhaps not the best solution.


joelrodrigues - Mo 08.01.07 13:52

That is the problem. I don´t know any component that implement that.
What are the best sites to search for Delphi components, please?

And ... This component should be able to show the alpha channel with a gradient (choosing 2 colors).


freedy - Mo 08.01.07 13:57

Try www.tmssoftware.com [http://www.tmssoftware.com/]. Thy have got an Image component with alpha channel functionality.

But I didn't hear about an alpha channel gradient. Do you really know what the alpha channel is? ;-)


joelrodrigues - Mo 08.01.07 14:03

Ok... My fault.
Yes... I know what it means.

The alpha channel would be used to display just one button. I will need 3 TImages with alpha channel (left, middle and right mouse buttons).

But the question: how to fill it with a blending color gradient on each button?


freedy - Mo 08.01.07 14:09

user profile iconjoelrodrigues hat folgendes geschrieben:
Ok... My fault.
Yes... I know what it means.

The alpha channel would be used to display just one button. I will need 3 TImages with alpha channel (left, middle and right mouse buttons).

But the question: how to fill it with a blending color gradient on each button?


The transparency must be adjust in your image. The areas where you want to show your special colour it would be full transparent. The edges where the shadow is shown your image is gray with lower transparency. That's it.