Renderer.readPixels - multiple declarations
Function Renderer.readPixels
Wraps SDL_RenderReadPixels
which makes a dsdl2
from the renderer's entire target
Parameters
Name | Description |
---|---|
format | requested dsdl2 of the returned dsdl2 |
Returns
dsdl2
copy of the renderer's entire target
Throws
dsdl2
if pixels failed to be read
Function Renderer.readPixels
Wraps SDL_RenderReadPixels
which makes a dsdl2
from a specified dsdl2
boundary at the
renderer's target
Parameters
Name | Description |
---|---|
rect | dsdl2 boundary to be read and copied |
format | requested dsdl2 of the returned dsdl2 |
Returns
dsdl2
copy of the specified rectangle boundary in the renderer's target
Throws
dsdl2
if pixels failed to be read