Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This macro creates an ARGBvalue from alpha, red, green, and blue values.

Syntax

#define ALPHA_SHIFT 24
#define RED_SHIFT   16
#define GREEN_SHIFT 8
#define BLUE_SHIFT  0
#define ALPHA_MASK  ((ARGB) 0xff << ALPHA_SHIFT)
#define MAKEARGB(
a, 
r, 
g, 
b) \
				(((ARGB) ((
a) & 0xff) << ALPHA_SHIFT)| \
				 ((ARGB) ((
r) & 0xff) << RED_SHIFT)  | \
				 ((ARGB) ((
g) & 0xff) << GREEN_SHIFT)| \
				 ((ARGB) ((
b) & 0xff) << BLUE_SHIFT))

Parameters

a

The alpha value of the color

r

The value of the red color component

g

The value of the green color component

b

The value of the blue color component

Requirements

Header imaging.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Imaging Macros