[−][src]Struct seamcarving::Carved
An image with some vertical seams carved. If you want to save this image or otherwise manipulate it, you can convert it to a ImageBuffer.
Trait Implementations
impl<'a, IMG: GenericImageView> GenericImageView for Carved<'a, IMG> where
<IMG as GenericImageView>::Pixel: 'a,
[src]
<IMG as GenericImageView>::Pixel: 'a,
type Pixel = IMG::Pixel
The type of pixel.
type InnerImageView = IMG::InnerImageView
Underlying image type. This is mainly used by SubImages in order to always have a reference to the original image. This allows for less indirections and it eases the use of nested SubImages. Read more
fn dimensions(&self) -> (u32, u32)
[src]
fn bounds(&self) -> (u32, u32, u32, u32)
[src]
fn get_pixel(&self, x: u32, y: u32) -> Self::Pixel
[src]
fn inner(&self) -> &Self::InnerImageView
[src]
fn width(&self) -> u32
[src]
fn height(&self) -> u32
[src]
fn in_bounds(&self, x: u32, y: u32) -> bool
[src]
unsafe fn unsafe_get_pixel(&self, x: u32, y: u32) -> Self::Pixel
[src]
fn pixels(&self) -> Pixels<Self>
[src]
fn view(
&self,
x: u32,
y: u32,
width: u32,
height: u32
) -> SubImage<&Self::InnerImageView>
[src]
&self,
x: u32,
y: u32,
width: u32,
height: u32
) -> SubImage<&Self::InnerImageView>
impl<'a, 'b, IMG: GenericImageView> Into<ImageBuffer<<IMG as GenericImageView>::Pixel, Vec<<<IMG as GenericImageView>::Pixel as Pixel>::Subpixel>>> for &'b Carved<'a, IMG> where
<IMG as GenericImageView>::Pixel: 'static,
[src]
<IMG as GenericImageView>::Pixel: 'static,
fn into(
self
) -> ImageBuffer<IMG::Pixel, Vec<<<IMG as GenericImageView>::Pixel as Pixel>::Subpixel>>
[src]
self
) -> ImageBuffer<IMG::Pixel, Vec<<<IMG as GenericImageView>::Pixel as Pixel>::Subpixel>>
Creates a buffer storing the image modified image contents.
Creating the buffer is expensive, but accessing image data from a buffer is then faster than from Carved instance.
Auto Trait Implementations
impl<'a, IMG> RefUnwindSafe for Carved<'a, IMG> where
IMG: RefUnwindSafe,
IMG: RefUnwindSafe,
impl<'a, IMG> Send for Carved<'a, IMG> where
IMG: Sync,
IMG: Sync,
impl<'a, IMG> Sync for Carved<'a, IMG> where
IMG: Sync,
IMG: Sync,
impl<'a, IMG> Unpin for Carved<'a, IMG>
impl<'a, IMG> UnwindSafe for Carved<'a, IMG> where
IMG: RefUnwindSafe,
IMG: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,