[−][src]Struct mupdf::Image
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]
list: &DisplayList,
width: f32,
height: f32
) -> Result<Self, Error>
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
Auto Trait Implementations
impl RefUnwindSafe for Image
[src]
impl !Send for Image
[src]
impl !Sync for Image
[src]
impl Unpin for Image
[src]
impl UnwindSafe for Image
[src]
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,
pub 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, 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.
pub 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>,