Exemplo n.º 1
0
 void save_to_png(const char * filename)
 {
     std::FILE * file = fopen(filename, "w+");
     dump_png24(file, this->gd.drawable.data, this->gd.drawable.width,
                this->gd.drawable.height, this->gd.drawable.rowsize);
     fclose(file);
 }
Exemplo n.º 2
0
 void save_to_png(const char * filename)
 {
     std::FILE * file = fopen(filename, "w+");
     dump_png24(file, this->gd.data(), this->gd.width(),
                this->gd.height(), this->gd.rowsize(), true);
     fclose(file);
 }