openMSX
|
Public Member Functions | |
Paper (unsigned x, unsigned y, double dotSizeX, double dotSizeY) | |
std::string | save () const |
void | setDotSize (double sizeX, double sizeY) |
void | plot (double x, double y) |
Static Public Attributes | |
static constexpr std::string_view | PRINT_DIR = "prints" |
static constexpr std::string_view | PRINT_EXTENSION = ".png" |
Definition at line 21 of file Printer.cc.
openmsx::Paper::Paper | ( | unsigned | x, |
unsigned | y, | ||
double | dotSizeX, | ||
double | dotSizeY | ||
) |
Definition at line 1581 of file Printer.cc.
References ranges::fill(), and setDotSize().
void openmsx::Paper::plot | ( | double | x, |
double | y | ||
) |
Definition at line 1662 of file Printer.cc.
std::string openmsx::Paper::save | ( | ) | const |
Definition at line 1589 of file Printer.cc.
References openmsx::FileOperations::getNextNumberedFileName(), PRINT_DIR, PRINT_EXTENSION, openmsx::PNG::saveGrayscale(), VLA, and xrange().
void openmsx::Paper::setDotSize | ( | double | sizeX, |
double | sizeY | ||
) |
Definition at line 1601 of file Printer.cc.
Referenced by Paper().
|
staticconstexpr |
Definition at line 24 of file Printer.cc.
Referenced by save().
|
staticconstexpr |
Definition at line 25 of file Printer.cc.
Referenced by save().