remove png function as it was not very useful

This commit is contained in:
hippoz 2022-07-26 01:06:07 +03:00
parent 801482efbf
commit 533b6ebe91
Signed by: hippoz
GPG key ID: 7C52899193467641
2 changed files with 0 additions and 8 deletions

View file

@ -102,11 +102,4 @@ void Painter::flush_paint_group() {
m_cairo->get_target()->flush(); m_cairo->get_target()->flush();
} }
Point Painter::png(std::string path) {
auto image = Cairo::ImageSurface::create_from_png(path.c_str());
m_cairo->set_source(image, 0, 0);
return Point(image->get_width(), image->get_height());
}
} }

View file

@ -30,7 +30,6 @@ public:
bool can_paint() { if (m_cairo) return true; else return false; } bool can_paint() { if (m_cairo) return true; else return false; }
void source_rgb(RGB source_rgb); void source_rgb(RGB source_rgb);
Point png(std::string path);
void fill(); void fill();
void begin_paint_group(); void begin_paint_group();