pub struct Image { /* private fields */ }
Implementations§
source§impl Image
impl Image
pub fn from_pixmap(pixmap: &Pixmap) -> Result<Self, Error>
pub fn from_file(filename: &str) -> Result<Self, Error>
pub fn from_display_list( list: &DisplayList, width: f32, height: f32 ) -> Result<Self, Error>
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn n(&self) -> u8
pub fn bits_per_components(&self) -> u8
pub fn color_space(&self) -> Colorspace
pub fn resolution(&self) -> (i32, i32)
pub fn mask(&self) -> Option<Self>
pub fn to_pixmap(&self) -> Result<Pixmap, Error>
pub fn interpolate(&self) -> bool
pub fn set_interpolate(&mut self, interpolate: bool)
pub fn scalable(&self) -> bool
pub fn set_scalable(&mut self, scalable: bool)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl !Send for Image
impl !Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more