[][src]Struct fltk::image::RgbImage

pub struct RgbImage { /* fields omitted */ }

Creates a struct holding a raw RGB image

Implementations

impl RgbImage[src]

pub fn new(
    data: &[u8],
    w: u32,
    h: u32,
    depth: u32
) -> Result<RgbImage, FltkError>
[src]

Initializes a new raw RgbImage, gives the slice static lifetime If you need to work with RGB data, it's suggested to use the Image crate https://crates.io/crates/image

pub unsafe fn into_parts(self) -> (Vec<u8>, u32, u32)[src]

Deconstructs a raw RgbImage into parts

Safety

Destructures the image into its raw elements

Trait Implementations

impl Clone for RgbImage[src]

impl Debug for RgbImage[src]

impl ImageExt for RgbImage[src]

impl Send for RgbImage[src]

impl Sync for RgbImage[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.