SDL_ConvertPixels

Copy a block of pixels of one format to another format.

extern (C) nothrow @nogc extern
bool
SDL_ConvertPixels

Parameters

width int

the width of the block to copy, in pixels.

height int

the height of the block to copy, in pixels.

src_format SDL_PixelFormat

an SDL_PixelFormat value of the src pixels format.

src const(void)*

a pointer to the source pixels.

src_pitch int

the pitch of the source pixels, in bytes.

dst_format SDL_PixelFormat

an SDL_PixelFormat value of the dst pixels format.

dst void*

a pointer to be filled in with new pixel data.

dst_pitch int

the pitch of the destination pixels, in bytes.

Return Value

Type: bool

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

See Also

Meta