[−][src]Function sdl2_sys::SDL_RenderReadPixels
pub unsafe extern "C" fn SDL_RenderReadPixels(
renderer: *mut SDL_Renderer,
rect: *const SDL_Rect,
format: Uint32,
pixels: *mut c_void,
pitch: c_int
) -> c_int
\brief Read pixels from the current rendering target.
\param renderer The renderer from which pixels should be read. \param rect A pointer to the rectangle to read, or NULL for the entire render target. \param format The desired format of the pixel data, or 0 to use the format of the rendering target \param pixels A pointer to be filled in with the pixel data \param pitch The pitch of the pixels parameter.
\return 0 on success, or -1 if pixel reading is not supported.
\warning This is a very slow operation, and should not be used frequently.