(&self, path: &Path)
| 589 | |
| 590 | #[cfg(any(test, feature = "testutils"))] |
| 591 | fn save_bmp(&self, path: &Path) -> io::Result<()> { |
| 592 | let ctx = (*self.0).borrow_mut(); |
| 593 | let surface = ctx.canvas.surface(); |
| 594 | surface.save_bmp(path).map_err(string_error_to_io_error) |
| 595 | } |
| 596 | } |
| 597 | |
| 598 | impl RasterOps for SharedContext { |