Skip to main content
Version: 4.1

CanvasCompositeOperation

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Determines how a source (new) image are drawn onto a destination (existing) image.

public enum CanvasCompositeOperation : Enum

Fields

NameDescription
CopyDisplays the source image. The destination image is ignored.
DestinationAtopDisplays the destination image on top of the source image. The part of the destination image that is outside the source image is not shown.
DestinationInDisplays the destination image in to the source image. Only the part of the destination image that is INSIDE the source image is shown, and the source image is transparent.
DestinationOutDisplays the destination image out of the source image. Only the part of the destination image that is OUTSIDE the source image is shown, and the source image is transparent.
DestinationOverDisplays the destination image over the source image.
LighterDisplays the source image + the destination image.
SourceAtopDisplays the source image on top of the destination image. The part of the source image that is outside the destination image is not shown.
SourceInDisplays the source image in to the destination image. Only the part of the source image that is INSIDE the destination image is shown, and the destination image is transparent.
SourceOutDisplays the source image out of the destination image. Only the part of the source image that is OUTSIDE the destination image is shown, and the destination image is transparent.
SourceOverDefault. Displays the source image over the destination image.
XorThe source image is combined by using an exclusive OR with the destination image.

Used By

NameDescription
Canvas.GlobalCompositeOperationSets or returns how a new image are drawn onto an existing image.