.\" This manpage content is licensed under Creative Commons .\" Attribution 4.0 International (CC BY 4.0) .\" https://creativecommons.org/licenses/by/4.0/ .\" This manpage was generated from SDL's wiki page for SDL_PremultiplyAlpha: .\" https://wiki.libsdl.org/SDL_PremultiplyAlpha .\" Generated with SDL/build-scripts/wikiheaders.pl .\" revision SDL-3.1.0 .\" Please report issues in this manpage's content at: .\" https://github.com/libsdl-org/sdlwiki/issues/new .\" Please report issues in the generation of this manpage from the wiki at: .\" https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20SDL_PremultiplyAlpha .\" SDL can be found at https://libsdl.org/ .de URL \$2 \(laURL: \$1 \(ra\$3 .. .if \n[.g] .mso www.tmac .TH SDL_PremultiplyAlpha 3 "SDL 3.1.0" "SDL" "SDL3 FUNCTIONS" .SH NAME SDL_PremultiplyAlpha \- Premultiply the alpha on a block of pixels\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3/SDL.h\(dq .PP .BI "int SDL_PremultiplyAlpha(int width, int height, SDL_PixelFormatEnum src_format, const void *src, int src_pitch, SDL_PixelFormatEnum dst_format, void *dst, int dst_pitch); .fi .SH DESCRIPTION This is safe to use with src == dst, but not for other overlapping areas\[char46] This function is currently only implemented for .BR SDL_PIXELFORMAT_ARGB8888 \[char46] .SH FUNCTION PARAMETERS .TP .I width the width of the block to convert, in pixels .TP .I height the height of the block to convert, in pixels .TP .I src_format an .BR SDL_PixelFormatEnum value of the .BR src pixels format .TP .I src a pointer to the source pixels .TP .I src_pitch the pitch of the source pixels, in bytes .TP .I dst_format an .BR SDL_PixelFormatEnum value of the .BR dst pixels format .TP .I dst a pointer to be filled in with premultiplied pixel data .TP .I dst_pitch the pitch of the destination pixels, in bytes .SH RETURN VALUE Returns 0 on success or a negative error code on failure; call .BR SDL_GetError () for more information\[char46] .SH AVAILABILITY This function is available since SDL 3\[char46]0\[char46]0\[char46]