The OpenD Programming Language

alphaBlend

Blends source into target with respect to the opacity of the source image (as stored in the alpha channel).

  1. void alphaBlend(Pixel[] target, Pixel[] source)
    template alphaBlend(BlendFn blend = null, BlendAccuracy accuracy = BlendAccuracy.rgba)
    @safe pure nothrow @nogc @trusted
    void
    alphaBlend
    (
    scope Pixel[] target
    ,
    scope const Pixel[] source
    )
  2. void alphaBlend(Pixel pxTarget, Pixel pxSource)
  3. template alphaBlend(BlendAccuracy accuracy, BlendFn blend = null)

Members

Functions

alphaBlend
void alphaBlend(Pixel[] target, Pixel[] source)
void alphaBlend(Pixel pxTarget, Pixel pxSource)

ditto

See Also

alphaBlendRGBA and alphaBlendRGB are shorthand functions in cases where no special blending algorithm is needed.

Meta