The OpenD Programming Language

alphaBlendRGBA

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

This variant is $(slower than) alphaBlendRGB, but calculates the correct alpha-channel value of the target. See BlendAccuracy for further explanation.

  1. void alphaBlendRGBA(Pixel[] target, Pixel[] source)
    @safe pure nothrow @nogc @safe
    void
    alphaBlendRGBA
    (
    scope Pixel[] target
    ,
    scope const Pixel[] source
    )
  2. void alphaBlendRGBA(Pixel pxTarget, Pixel pxSource)

Meta