# Cinder

# cinder::CHANTRAIT< uint16_t > Struct Template Reference

`#include <ChanTraits.h>`

List of all members.

## Public Types
typedef uint32_t | Sum
typedef uint32_t | Accum
typedef int32_t | SignedSum
## Static Public Member Functions
static uint16_t | max ()
static uint16_t | convert (uint8_t v)
static uint16_t | convert (uint16_t v)
static uint16_t | convert (float v)
static uint16_t | grayscale (uint16_t r, uint16_t g, uint16_t b)

### template<>
struct cinder::CHANTRAIT< uint16_t >

## Member Typedef Documentation

typedef uint32_t cinder::CHANTRAIT< uint16_t >::Sum

typedef uint32_t cinder::CHANTRAIT< uint16_t >::Accum

typedef int32_t cinder::CHANTRAIT< uint16_t >::SignedSum

## Member Function Documentation

static uint16_t cinder::CHANTRAIT< uint16_t >::max | ( |  | ) | `[static]`

static uint16_t cinder::CHANTRAIT< uint16_t >::convert | ( | uint8_t | v | ) | `[static]`

static uint16_t cinder::CHANTRAIT< uint16_t >::convert | ( | uint16_t | v | ) | `[static]`

static uint16_t cinder::CHANTRAIT< uint16_t >::convert | ( | float | v | ) | `[static]`

static uint16_t cinder::CHANTRAIT< uint16_t >::grayscale | ( | uint16_t | r,
|  | uint16_t | g,
|  | uint16_t | b |
| ) |  |  | `[static]`

The documentation for this struct was generated from the following file:

- include/cinder/ChanTraits.h