5.1. tsPostAddFillColor

Syntax

Pascal

procedure tsPostAddFillColor3ub(Red: tsByte; Green: tsByte; Blue: tsByte;
  ChannelMask: tsBitmask);

procedure tsPostAddFillColor4ub(Red: tsByte; Green: tsByte; Blue: tsByte;
  Alpha: tsByte; ChannelMask: tsBitmask);

procedure tsPostAddFillColor3f(Red: tsFloat; Green: tsFloat; Blue: tsFloat;
  ChannelMask: tsBitmask);

procedure tsPostAddFillColor4f(Red: tsFloat; Green: tsFloat; Blue: tsFloat;
  Alpha: tsFloat; ChannelMask: tsBitmask);

C/C++

void tsPostAddFillColor3ub(tsByte Red, tsByte Green, tsByte Blue,
  tsBitmask ChannelMask);

void tsPostAddFillColor4ub(tsByte Red, tsByte Green, tsByte Blue,
  tsByte Alpha, tsBitmask ChannelMask);

void tsPostAddFillColor3f(tsFloat Red, tsFloat Green, tsFloat Blue,
  tsBitmask ChannelMask);

void tsPostAddFillColor4f(tsFloat Red, tsFloat Green, tsFloat Blue,
  tsFloat Alpha, tsBitmask ChannelMask);

Description

This post processor only fills the chars with an specific color. The operation can be affected by the adjusted image modes.

Sample Image for tsPostAddFillColor

Params

Red, Green, Blue and Alpha

Indicates the value for one of the channels. The value may have 2 types. tsByte has an rage from 0 to 255. tsFloat is in range from 0 to 1. If you call an version without the alpha parameter the value for the alpha always will be the maximum value (255 or 1).

If an channel wasn't specified in the channel mask the value for this channel get ignored.

ChannelMask

Indicates which channels will be filled. For an list of all available flags look in the table Channelmasks.

Error Codes

TS_NO_ACTIVE_CONTEXT

If there was no context bound.

TS_NO_ACTIVE_FONT

If there is no font bound.

TS_INVALID_OPERATION

If the bound font isn't an font creator.