PeachDrawing.Core

PeachDrawing.Core

PaintBlendMode Enum

A PDF separable/non-separable blend mode (PDF 32000-1 §11.3.5), used with PushBlendMode(PaintBlendMode)/PopBlendMode() to composite subsequent drawing against whatever is already painted underneath it.

public enum PaintBlendMode

Fields

Normal 0

The source paints over the backdrop with no mixing.

Multiply 1

The source and backdrop colors are multiplied together, always darkening.

Screen 2

The inverse of multiplying the inverted colors, always lightening.

Overlay 3

Multiplies dark backdrop areas and screens light ones - the inverse of HardLight with source and backdrop swapped.

Darken 4

Selects the darker of the source and backdrop colors, per channel.

Lighten 5

Selects the lighter of the source and backdrop colors, per channel.

ColorDodge 6

Brightens the backdrop to reflect the source, like a photographic dodge.

ColorBurn 7

Darkens the backdrop to reflect the source, like a photographic burn.

HardLight 8

Multiplies or screens the backdrop depending on the source color, as if the source were a harsh spotlight.

SoftLight 9

Darkens or lightens the backdrop depending on the source color, more gently than HardLight.

Difference 10

Subtracts the darker color from the lighter one, per channel.

Exclusion 11

Similar to Difference but with lower contrast.

Hue 12

Takes the hue of the source with the saturation and luminosity of the backdrop.

Saturation 13

Takes the saturation of the source with the hue and luminosity of the backdrop.

Color 14

Takes the hue and saturation of the source with the luminosity of the backdrop.

Luminosity 15

Takes the luminosity of the source with the hue and saturation of the backdrop - the inverse of Color.