save()

Output / Image

Description

Saves an image from the display window. The filename must include an extension (PNG, JPG).

Syntax

void save(std::string filename)

Parameters

NameTypeDescription
filenamestd::stringfilename with extension

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...