remove png function as it was not very useful
This commit is contained in:
parent
801482efbf
commit
533b6ebe91
2 changed files with 0 additions and 8 deletions
|
@ -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());
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue