AggPas - Anti-Grain Geomertry for Object Pascal

TAggBlendMode

Description

TAggBlendMode determines the compositing operation used when rendering individual pixels onto the drawing surface.

These composition modes are compliant to those defined in SVG 1.2 specification.

Constant Values

AGG_BlendAlpha

No composition, just common blend with an alpha value (if present).

AGG_BlendClear

Both the color and the alpha of the destination are cleared. Neither the source nor the destination are used as input.

AGG_BlendSrc

The source is copied to the destination. The destination is not used as input.

AGG_BlendDst

The destination is left untouched.

AGG_BlendSrcOver

The source is composited over the destination.

AGG_BlendDstOver

The destination is composited over the source and the result replaces the destination.

AGG_BlendSrcIn

The part of the source lying inside of the destination replaces the destination.

AGG_BlendDstIn

The part of the destination lying inside of the source replaces the destination.

AGG_BlendSrcOut

The part of the source lying outside of the destination replaces the destination.

AGG_BlendDstOut

The part of the destination lying outside of the source replaces the destination.

AGG_BlendSrcAtop

The part of the source lying inside of the destination is composited onto the destination.

AGG_BlendDstAtop

The part of the destination lying inside of the source is composited over the source and replaces the destination.

AGG_BlendXor

The part of the source that lies outside of the destination is combined with the part of the destination that lies outside of the source.

AGG_BlendAdd

The source is added to the destination and replaces the destination. This operator is useful for animating a dissolve between two images.

AGG_BlendSub

The source is subtracted from the destination and replaces the destination.

AGG_BlendMultiply

The source is multiplied by the destination and replaces the destination. The resultant color is always at least as dark as either of the two constituent colors. Multiplying any color with black produces black. Multiplying any color with white leaves the original color unchanged.

AGG_BlendScreen

The source and destination are complemented and then multiplied and then replace the destination. The resultant color is always at least as light as either of the two constituent colors. Screening any color with white produces white. Screening any color with black leaves the original color unchanged.

AGG_BlendOverlay

Multiplies or screens the colors, dependent on the destination color. Source colors overlay the destination whilst preserving its highlights and shadows. The destination color is not replaced, but is mixed with the source color to reflect the lightness or darkness of the destination.

AGG_BlendDarken

Selects the darker of the destination and source colors. The destination is replaced with the source when the source is darker, otherwise it is left unchanged.

AGG_BlendLighten

Selects the lighter of the destination and source colors. The destination is replaced with the source when the source is lighter, otherwise it is left unchanged.

AGG_BlendColorDodge

Brightens the destination color to reflect the source color. Painting with black produces no change.

AGG_BlendColorBurn

Darkens the destination color to reflect the source color. Painting with white produces no change.

AGG_BlendHardLight

Multiplies or screens the colors, dependent on the source color value. If the source color is lighter than 0.5, the destination is lightened as if it were screened. If the source color is darker than 0.5, the destination is darkened, as if it were multiplied. The degree of lightening or darkening is proportional to the difference between the source color and 0.5. If it is equal to 0.5 the destination is unchanged. Painting with pure black or white produces black or white.

AGG_BlendSoftLight

Darkens or lightens the colors, dependent on the source color value. If the source color is lighter than 0.5, the destination is lightened. If the source color is darker than 0.5, the destination is darkened, as if it were burned in. The degree of darkening or lightening is proportional to the difference between the source color and 0.5. If it is equal to 0.5, the destination is unchanged. Painting with pure black or white produces a distinctly darker or lighter area, but does not result in pure black or white.

AGG_BlendDifference

Subtracts the darker of the two constituent colors from the lighter. Painting with white inverts the destination color. Painting with black produces no change.

AGG_BlendExclusion

Produces an effect similar to that of 'difference', but appears as lower contrast. Painting with white inverts the destination color. Painting with black produces no change.