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 25 of file Printer.cc.
openmsx::Paper::Paper | ( | unsigned | x, |
unsigned | y, | ||
double | dotSizeX, | ||
double | dotSizeY | ||
) |
Definition at line 1585 of file Printer.cc.
References ranges::fill(), and setDotSize().
void openmsx::Paper::plot | ( | double | x, |
double | y | ||
) |
Definition at line 1664 of file Printer.cc.
std::string openmsx::Paper::save | ( | ) | const |
Definition at line 1593 of file Printer.cc.
References openmsx::FileOperations::getNextNumberedFileName(), PRINT_DIR, PRINT_EXTENSION, openmsx::PNG::saveGrayscale(), view::transform(), and xrange().
void openmsx::Paper::setDotSize | ( | double | sizeX, |
double | sizeY | ||
) |
Definition at line 1603 of file Printer.cc.
Referenced by Paper().
|
staticconstexpr |
Definition at line 28 of file Printer.cc.
Referenced by save().
|
staticconstexpr |
Definition at line 29 of file Printer.cc.
Referenced by save().