Realm

oa::image::center_crop

Extract a centered region with the requested exact extent.

FnRust public API

Function Documentation

pub fn center_crop( input: &Image, width: u32, height: u32 ) -> Result<Image>
Extract a centered region with the requested exact extent.