add some methods

This commit is contained in:
DCjanus
2021-12-24 17:58:14 +08:00
parent 2e843d7336
commit dcb6046f5b
2 changed files with 127 additions and 3 deletions

View File

@ -40,6 +40,12 @@ impl DrawingWand {
Ok(())
}
pub fn draw_circle(&mut self, ox: f64, oy: f64, px: f64, py: f64) {
unsafe {
bindings::DrawCircle(self.wand, ox, oy, px, py);
}
}
string_set_get!(
get_font, set_font, DrawGetFont, DrawSetFont
get_font_family, set_font_family, DrawGetFontFamily, DrawSetFontFamily