pub unsafe extern "C" fn SDL_ConvertPixels(
    width: c_int,
    height: c_int,
    src_format: Uint32,
    src: *const c_void,
    src_pitch: c_int,
    dst_format: Uint32,
    dst: *mut c_void,
    dst_pitch: c_int
) -> c_int
Expand description

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

\param width the width of the block to copy, in pixels \param height the height of the block to copy, in pixels \param src_format an SDL_PixelFormatEnum value of the src pixels format \param src a pointer to the source pixels \param src_pitch the pitch of the source pixels, in bytes \param dst_format an SDL_PixelFormatEnum value of the dst pixels format \param dst a pointer to be filled in with new pixel data \param dst_pitch the pitch of the destination pixels, in bytes \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.