decreaseOpacity

Lowers the opacity of a Pixmap.

This operation updates the alpha-channel value of each pixel. → alpha *= opacity

  1. Pixel decreaseOpacity(Pixel source, ubyte opacityPercentage)
  2. Pixmap decreaseOpacity(Pixmap source, Pixmap target, ubyte opacityPercentage)
    @safe pure nothrow @nogc
    decreaseOpacity

See Also

Use decreaseOpacityF with decimal opacity values in percent (%).

Meta