[][src]Trait ommui_frontend_gtk::pixbufs::LoadFromBytes

pub trait LoadFromBytes: Sized {
    fn load_from_bytes_at_scale<B: Into<Bytes>>(
        data: B,
        max_width: u16,
        max_height: u16
    ) -> Result<Self>; fn load_from_bytes_with_size<B: Into<Bytes>>(
        data: B,
        pixelsize: u16
    ) -> Result<Self> { ... } }

A trait for items loadable from in-memory byte arrays.

Required methods

fn load_from_bytes_at_scale<B: Into<Bytes>>(
    data: B,
    max_width: u16,
    max_height: u16
) -> Result<Self>

Load the item with a maximum width and height.

Loading content...

Provided methods

fn load_from_bytes_with_size<B: Into<Bytes>>(
    data: B,
    pixelsize: u16
) -> Result<Self>

Load the item with a defined pixel size.

Loading content...

Implementations on Foreign Types

impl LoadFromBytes for Pixbuf[src]

Loading content...

Implementors

Loading content...