TRGBTransparentTransferMode is a concrete class, derived from TTransferMode, that generates a color based on a source color, a destination color, and a reference transparentcolor. If the source color is the same as the transparent color, the result is the same color as the destination; otherwise, the result is the same as the source color. The comparison of the source to the transparent color is made in the RGB color space, and the two colors' alpha (transparency) values must also match. (The source and destination colors need not be TRGBColors, and the resulting color is converted from RGB to the specified color space.)
This transfer mode is different from most of the other RGB transfer modes, in that the transfer mode itself stores a TRGBColor, the transparent color. The color is specified as an argument to a constructor, and can be retrieved with TRGBTransparentTransferMode::GetTransparentColor.
If the source color is equal to the internally stored transparency color of this object, replaces the source color with the destination color. If the source color is not equal to the transparency color, the resulting color is set to the source color. All parameters are passed as TColor objects.
Calling Context:
Call this function directly.
Parameters:
const TColor & sourceColor -The source color to compare with the transparent color.
const TColor & destColor -The destination color to show through.
If the source color is equal to the internally stored transparency color of this object, replaces the source color with the destination color. If the source color is not equal to the transparency color, the resulting color is set to the source color. All parameters are passed as TRGBColor objects.
Calling Context:
Call this function directly.
Parameters:
const TRGBColor & sourceColor -The source color to compare with the transparent color.
const TRGBColor & destColor -The destination color to show through.