Source active and destination active

The TSrcActiveTransferMode and TDstActiveTransferMode classes are shown in Figure 116. Their transfer mode algorithms are described below.


TSrcCopyTransferMode: This class copies the color of the source over the color of the destination without blending the colors.

TGrayFilteredReplaceTransferMode: This class converts colors to gray scale at the destination.

The following transfer modes are invertible transfer modes that find the closest match. This means that the first Draw call inverts the color values as described, and the second Draw call reverses the color values to their closest match.

TGrayInvertSrcTransferMode, TGrafInvertDstTransferMode: These classes invert the gray scale at the source and destination, respectively. If the source is (Gray .25, .25, .25), the inverse is (Gray, .75, .75, .75 ).

TRGBInvertSrcTransferMode, TRGBInvertDstTransferMode: These classes invert the RGB values at the source and destination, respectively. If the source is (Red .75, Green .25, and Blue .25), the inverse is (Red .25, Green .75, and Blue .75).

TInvertTransferMode and TInvertHighlightTransferMode are truly invertible transfer modes. This means that the first Draw call inverts the color values as described below, and the second Draw call reverses the color values to their original values.

TInvertTransferMode: This class inverts the destination colors and is reversible.

TInvertHighlightTransferMode: This class compares the destination colors against a specified background color. All destination colors that match that background color get replaced with the specified highlight color. All other destination colors are inverted.

These transfer mode classes convert from cyan, magenta, yellow, or black (CMYK) to gray scale.

TCMYKCyanToGrayTransferMode: This class converts cyan to gray.

TCMYKMagentaToGrayTransferMode: This class converts magenta to gray.

TCMYKYellowToGrayTransferMode: This class converts yellow to gray.

TCMYKBlackToGrayTransferMode: This class converts black to gray.

TGrayInvertDstTransferMode: This class inverts the gray scale at the destination.

TRGBInvertDstTransferMode: This class inverts the RGB values at the destination.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker