[][src]Struct mupdf::Image

pub struct Image { /* fields omitted */ }

Implementations

impl Image[src]

pub fn from_pixmap(pixmap: &Pixmap) -> Result<Self, Error>[src]

pub fn from_file(filename: &str) -> Result<Self, Error>[src]

pub fn from_display_list(
    list: &DisplayList,
    width: f32,
    height: f32
) -> Result<Self, Error>
[src]

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

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

pub fn n(&self) -> u8[src]

pub fn bits_per_components(&self) -> u8[src]

pub fn color_space(&self) -> Colorspace[src]

pub fn resolution(&self) -> (i32, i32)[src]

pub fn mask(&self) -> Option<Self>[src]

pub fn to_pixmap(&self) -> Result<Pixmap, Error>[src]

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

pub fn set_interpolate(&mut self, interpolate: bool)[src]

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

pub fn set_scalable(&mut self, scalable: bool)[src]

Trait Implementations

impl Debug for Image[src]

impl Drop for Image[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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.