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

From Processing.h:

void save(const std::string& filename);

Under the Hood

From Processing.cpp:

void PApplet::save(const std::string& fn){saveFrame(fn);}