formZ SDK | 5.0 API Reference | System | Runtime Library (FZRT) | Graphics

# fzrt_pbuf_apply_alpha_enum

Description

Apply alpha flag. This represents how the alpha channel data is handled when pushing/pulling data to/from a pixel buffer.

enum fzrt_pbuf_apply_alpha_enum {

FZRT_PBUF_ALPHA_CHANNEL_COPY,

FZRT_PBUF_ALPHA_CHANNEL_APPLY,

FZRT_PBUF_ALPHA_CHANNEL_ONLY,

FZRT_PBUF_ALPHA_CHANNEL_NONE,

FZRT_PBUF_ALPHA_CHANNEL_RGB_TO_ALPHA,

FZRT_PBUF_ALPHA_CHANNEL_ALPHA_TO_ALPHA };

Members

FZRT_PBUF_ALPHA_CHANNEL_COPY

- copy alpha information if any with RGB data

FZRT_PBUF_ALPHA_CHANNEL_APPLY

- applies alpha information to RGB pixels

FZRT_PBUF_ALPHA_CHANNEL_ONLY

- copies alpha channel over to RGB pixels

FZRT_PBUF_ALPHA_CHANNEL_NONE

- don't copy alpha channel - set to zeros

FZRT_PBUF_ALPHA_CHANNEL_RGB_TO_ALPHA

- copies average of rgb from source to alpha channel of destination. This is the inverse of FZRT_PBUF_ALPHA_CHANNEL_ONLY

FZRT_PBUF_ALPHA_CHANNEL_ALPHA_TO_ALPHA

- copies alpha channel of source to alpha channel of destination.

Availability

5.0.0.0

See Also

fzrt_pbuf_get_pixels, fzrt_pbuf_put_pixels

Defined in

fzrt_api_type.h