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

# fzrt_arith_mode_enum

Description

Arithmetic transfer modes. Constants to set the copybits transfer mode

enum fzrt_arith_mode_enum {

FZRT_BLEND,

FZRT_ADDPIN,

FZRT_ADDOVER,

FZRT_SUBPIN,

FZRT_TRANSPARENT,

FZRT_ADDMAX,

FZRT_SUBOVER,

FZRT_ADMIN,

FZRT_DITHERCOPY };

Members

FZRT_BLEND

Replaces the destination pixel with a blend of the source and destination pixel colors. If the destination is a bitmap or 1-bit pixel map, reverts to srcCopy mode.

FZRT_ADDPIN

Replaces the destination pixel with the sum of the source and destination pixel colors-- up to a maximum allowable values. If the destination is a bitmap or 1-bit pixel map, reverts to srcBic mode.

FZRT_ADDOVER

Replaces the destination pixel with the sum of the source and destination pixel colors, except if the value of the red, green, or blue component exceeds 65,536, then addOver subtracts 65,536 from that value. If the destination is a bitmap or 1-bit pixel map, reverts to srcXor mode.

FZRT_SUBPIN

Replaces the destination pixel with the difference of the source and destination pixel colors, but not less than a minimum allowable value. If the destination is a bitmap or 1-bit pixel map, reverts to srcOr mode.

FZRT_TRANSPARENT

Replaces the destination pixel with the source pixel if the source pixel is not equal to the background color. The transparent mode replaces the destination pixel with the source pixel if the source pixel isnt equal to the background color. This mode is most useful in 8-bit, 4-bit, or 2-bit color modes.

FZRT_ADDMAX

Compares the source and destination pixels, and replaces the destination pixel with the color containing the greater saturation of each of the RGB components. If the destination is a bitmap or 1-bit pixel map, reverts to srcBic mode.

FZRT_SUBOVER

Replaces the destination pixel with the difference of the source and destination pixel colors, except if the value of the red, green, or blue component is less than 0, then it adds the negative result to 65,536. if the destination is a bitmap or 1-bit pixel map, revert to srcXor mode.

FZRT_ADMIN

Compares the source and destination pixels, and replaces the destination pixel with the color containing the lesser saturation of each of the RGB components. If the destination is a bitmap or 1-bit pixel map, reverts to srcOr mode.

FZRT_DITHERCOPY

you can add dithering to any source mode by adding this constant or the value it represents to the source mode.

Availability

5.0.0.0

See Also

Defined in

fzrt_api_type.h