SDL_PremultiplySurfaceAlpha

Premultiply the alpha in a surface.

This is safe to use with src == dst, but not for other overlapping areas.

extern (C) nothrow @nogc extern
bool
SDL_PremultiplySurfaceAlpha

Parameters

surface SDL_Surface*

the surface to modify.

linear bool

true to convert from sRGB to linear space for the alpha multiplication, false to do multiplication in sRGB space.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

Meta