1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
use ::ffi;
use image::VipsImage;

pub struct VipsRegion {
    pub c: *mut ffi::VipsRegion
}

impl VipsRegion {
    pub fn new(image: &VipsImage) -> VipsRegion {
        let c = unsafe {
            ffi::vips_region_new(image.c)
        };
        VipsRegion {
            c
        }
    }
}