m75: new function: Image::image_info()
@@ -290,6 +290,12 @@ impl RCHandle<SkImage> {
})
}
+ pub fn image_info(&self) -> ImageInfo {
+ ImageInfo::from_native(unsafe {
+ (*self.native().imageInfo()).clone()
+ })
+ }
+
pub fn width(&self) -> i32 {
unsafe { self.native().width() }
}
