Compartilhar via


MAKEARGB

Windows Mobile SupportedWindows Embedded CE Supported

9/8/2008

Esta macro cria um ARGB valor de alfa, valores Vermelho, verdes e azuis.

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

  • Um
    A alfa valor de cor
  • r
    O valor do componente de cor vermelho
  • g
    O valor do componente de cor verde
  • b
    O valor do componente de cor azul

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