statics.md
1.5 KB
Template read(const QString &file) {: #read }
Read a Template from disk at the provide file location. A derived class format is chosen based on the suffix of the provided file.
- function definition:
static Template read(const QString &file)
parameters:
Parameter Type Description file const QString & File to load a Template from. example:
Format::read("picture.jpg"); // returns a template loaded from "picture.jpg". The proper Format to load jpg images is selected automatically
void write(const QString &file, const Template &t) {: #write }
Write a template to disk at the provided file location.
function definition:
static void write(const QString &file, const Template &t)parameters:
Parameter Type Description file const QString & File to write a Template to t const Template & Template to write to disk output: (void)
example:
Template t("picture.jpg"); Format::write("new_pic_location.jpg", t); // Write t to "new_pic_location.jpg"