Icon TCompositeOperation

Unit: WebUI

TCompositeOperation = (coSourceOver,coSourceOnTop,coSourceIn,
      coSourceOut, coDestOnTop,coDestIn,coDestOut,coDestOver,
      coLighter,coXOR,coCopy)

Available In: Client Applications

The TCompositeOperation enumerated type is used to specify the how pixels are combined when drawing occurs with a TCanvasElement instance.

ElementDescription
coCopyDraw the source pixel, ignoring the destination pixel.
coDestInMultiply the destination pixel by the opacity of the source pixel, but ignore the color of the source pixel.
coDestOnTopDraw the source pixel underneath the destination pixel. If the source pixel is transparent, then the resulting pixel will also be transparent.
coDestOutThe destination pixel becomes transparent if the source pixel is opaque, and is not changed if the source pixel is transparent. The color of the source pixel is ignored.
coDestOverThe source pixel will appear behind the destination pixel, and shows based upon the transparency of the destination pixel.
coLighterThe colors of the source and destination pixels are added together and truncated by the maximum color value possible.
coSourceInDraw the source pixel, but multiply it by the opacity of the destination pixel. The color of the destination pixel is ignored, but if the destination pixel is transparent, then the resulting pixel will be also be transparent.
coSourceOnTopDraw the source pixel on top of the destination, but multiply it by the opacity of the desination pixel. If the destination pixel is transparent, then nothing is drawn.
coSourceOutThe resulting pixel is the source pixel when the destination pixel is transparent, and a transparent pixel when the destination pixel is opaque. The color of the destination pixel is ignored.
coSourceOverThe source pixel is drawn on top of the destination pixel. If the source pixel is partially-transparent, then the destination pixel is included to draw the resulting pixel. This is the default type of composite operation for canvas drawing.
coXORIf the source pixel is transparent, then the resulting pixel is the destination pixel. If the destination pixel is transparent, then the resulting pixel is the source pixel. If both the source and destination pixels are transparent or opaque, then the resulting pixel will be transparent.
Image