SaveRenderTexture()

Syntax

Result = SaveRenderTexture(#Texture, Filename$)
Description
Save the render texture content. It can be useful to do screenshots of a particular scene. The save format can be "BMP", "PNG", "JPG", "TGA", etc.

Parameters

#Texture The texture to use.
Filename$ The filename where the texture will be saved. This can be an absolute or relative (to the current directory) path.

Return value

If the texture can't be saved (permission error, disk full etc), the returned value will be zero.

See Also

CreateRenderTexture()

Supported OS

All

<- LoadTexture() - Texture Index - TextureHeight() ->