This method calculates a new color value when a transparency value is applied to it.
ColorAlpha = Exec_Method( "SYSTEM", "ALPHACOLOR", Color, AlphaValue )
Name | Required | Description |
---|---|---|
Color | Yes | Color to adjust. |
AlphaValue | Yes | Percentage transparency to apply (value from 0 to 100). |
Contains the adjusted color or "-1" if the color cannot be adjusted.
N/A
//// Get the system BTNFACE color and create a 20% “transparent” version of it.// Color = Get_Property( @Window, "VISUALSTYLECOLOR", SYSCOLOR_BTNFACE$ ) AlphaColor = Exec_Method( "SYSTEM", "ALPHACOLOR", Color, 20 )
DARKENCOLOR method, LIGHTENCOLOR method, MIXCOLORS method.