[][src]Struct resvg_qt::Image

pub struct Image(_);

Implementations

impl Image[src]

pub fn new_rgba(width: u32, height: u32) -> Option<Image>[src]

pub fn new_rgba_premultiplied(width: u32, height: u32) -> Option<Image>[src]

pub fn fill(&mut self, r: u8, g: u8, b: u8, a: u8)[src]

pub fn to_rgba(&self) -> Option<Image>[src]

pub fn save(&self, path: &str) -> bool[src]

pub fn resize(
    &self,
    width: u32,
    height: u32,
    ratio: AspectRatioMode,
    smooth: bool
) -> Option<Image>
[src]

pub fn copy(&self, x: u32, y: u32, width: u32, height: u32) -> Option<Image>[src]

pub fn try_clone(&self) -> Option<Image>[src]

pub fn data(&self) -> ImageData[src]

pub fn data_mut(&mut self) -> ImageData[src]

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

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

Trait Implementations

impl Drop for Image[src]

Auto Trait Implementations

impl RefUnwindSafe for Image

impl !Send for Image

impl !Sync for Image

impl Unpin for Image

impl UnwindSafe for Image

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.