# CompositeMode

## Content

[**DsPdfJS API v9.1.3**](../README)

***

[DsPdfJS API](../globals) / CompositeMode

# Enumeration: CompositeMode

Specifies the Porter Duff compositing method in which two pixels (source and destination) may contribute to the final color of the pixel.

## Enumeration Members

### BoundedCopy

> **BoundedCopy**: `2`

The source is copied to the destination, excluding the transparent pixels.

***

### Clear

> **Clear**: `0`

No regions are enabled.

***

### Copy

> **Copy**: `1`

Only the source will be present.

***

### Destination

> **Destination**: `3`

Only the destination will be present.

***

### DestinationAtop

> **DestinationAtop**: `11`

Destination which overlaps the source replaces the source. Source is placed elsewhere.

***

### DestinationIn

> **DestinationIn**: `7`

Destination which overlaps the source, replaces the source.

***

### DestinationOut

> **DestinationOut**: `9`

Destination is placed, where it falls outside of the source.

***

### DestinationOver

> **DestinationOver**: `5`

Destination is placed over the source.

***

### Lighter

> **Lighter**: `13`

Display the sum of the source image and destination image.

***

### SourceAtop

> **SourceAtop**: `10`

Source which overlaps the destination, replaces the destination. Destination is placed elsewhere.

***

### SourceIn

> **SourceIn**: `6`

The source that overlaps the destination, replaces the destination.

***

### SourceOut

> **SourceOut**: `8`

Source is placed, where it falls outside of the destination.

***

### SourceOver

> **SourceOver**: `4`

Source is placed over the destination.

***

### XOR

> **XOR**: `12`

The non-overlapping regions of source and destination are combined.
