Struct image::SubImage
[−]
[src]
pub struct SubImage<'a, I: 'a> { // some fields omitted }
A View into another image
Methods
impl<'a, I: GenericImage + 'static> SubImage<'a, I> where I::Pixel: 'static, I::Pixel::Subpixel: 'static
fn new(image: &mut I, x: u32, y: u32, width: u32, height: u32) -> SubImage<I>
Construct a new subimage
fn inner_mut(&mut self) -> &mut I
Returns a mutable reference to the wrapped image.
fn change_bounds(&mut self, x: u32, y: u32, width: u32, height: u32)
Change the coordinates of this subimage.
fn to_image(&self) -> ImageBuffer<I::Pixel, Vec<I::Pixel::Subpixel>>
Convert this subimage to an ImageBuffer