Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::image::SetAlpha Macro
C++
#define SetAlpha( rgb, a ) ( ((rgb)&0x00FFFFFF) | ( (a)<<24 ) )

Sets the alpha part of a color. (0-255 value, 0 being transparent, and 255 solid(opaque))

CDATA color = BASE_COLOR_RED;
   
CDATA hazy_color = SetAlpha( color, 128 );  
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!