Struct rin::graphics::freeimage::Image[][src]

pub struct Image { /* fields omitted */ }

Implementations

impl Bitmap[src]

pub fn load<P>(filename: P) -> Result<Bitmap, Error> where
    P: AsRef<Path>, 
[src]

pub fn load_with_format<P>(fif: Format, filename: P) -> Result<Bitmap, Error> where
    P: AsRef<Path>, 
[src]

pub fn load_from_memory(buffer: &[u8]) -> Result<Bitmap, Error>[src]

pub fn new<T>(
    ty: Type,
    width: usize,
    height: usize,
    bpp: usize,
    data: Option<&[T]>
) -> Bitmap where
    T: Copy
[src]

pub fn save<P>(&self, filename: P, flags: i32) -> Result<(), Error> where
    P: AsRef<Path>, 
[src]

pub fn width(&self) -> usize[src]

pub fn height(&self) -> usize[src]

pub fn bpp(&self) -> usize[src]

pub fn ty(&self) -> Type[src]

pub fn pitch(&self) -> usize[src]

pub fn bits(&self) -> &[u8]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

pub fn pixels<T>(&self) -> &[T]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

pub fn bits_mut(&mut self) -> &mut [u8]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

pub fn pixels_mut<T>(&mut self) -> &mut [T]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

pub fn scanlines(&'a self) -> ScanLines<'a>[src]

pub fn scanlines_mut(&mut self) -> ScanLinesMut<'_>[src]

pub fn flip_vertical(self) -> Result<Bitmap, Error>[src]

pub fn flip_horizontal(self) -> Result<Bitmap, Error>[src]

pub fn rescale(
    &self,
    w: usize,
    h: usize,
    filter: Filter
) -> Result<Bitmap, Error>
[src]

pub fn is_transparent(&self) -> bool[src]

pub fn to_4bits(&self) -> Result<Bitmap, Error>[src]

pub fn to_8bits(&self) -> Result<Bitmap, Error>[src]

pub fn to_greyscale(&self) -> Result<Bitmap, Error>[src]

pub fn to_16bits555(&self) -> Result<Bitmap, Error>[src]

pub fn to_16bits565(&self) -> Result<Bitmap, Error>[src]

pub fn to_24bits(&self) -> Result<Bitmap, Error>[src]

pub fn to_32bits(&self) -> Result<Bitmap, Error>[src]

pub fn to(&self, ty: Type) -> Result<Bitmap, Error>[src]

pub fn red_mask(&self) -> u32[src]

pub fn green_mask(&self) -> u32[src]

pub fn blue_mask(&self) -> u32[src]

pub fn channel(&self, channel: ColorChannel) -> Option<Bitmap>[src]

pub fn set_channel(
    &mut self,
    bitmap: &Bitmap,
    channel: ColorChannel
) -> Result<(), Error>
[src]

Trait Implementations

impl Clone for Bitmap[src]

impl Drop for Bitmap[src]

impl Image for Bitmap[src]

type DataType = u8

impl Image for Bitmap[src]

impl Send for Bitmap[src]

impl Sync for Bitmap[src]

Auto Trait Implementations

impl RefUnwindSafe for Bitmap

impl Unpin for Bitmap

impl UnwindSafe for Bitmap

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]