[][src]Struct imagine::BitmapRGBA8

pub struct BitmapRGBA8 {
    pub pixels: Vec<RGBA8>,
    pub width: usize,
    pub height: usize,
}

A grid of RGBA8 with a width and height.

  • Due to conventions, the (0,0) position is the TOP LEFT.

Fields

pixels: Vec<RGBA8>width: usizeheight: usize

Trait Implementations

impl Clone for BitmapRGBA8[src]

impl Debug for BitmapRGBA8[src]

impl Index<(usize, usize)> for BitmapRGBA8[src]

type Output = RGBA8

The returned type after indexing.

impl Index<(u32, u32)> for BitmapRGBA8[src]

type Output = RGBA8

The returned type after indexing.

impl Index<usize> for BitmapRGBA8[src]

type Output = [RGBA8]

The returned type after indexing.

impl Index<u32> for BitmapRGBA8[src]

type Output = [RGBA8]

The returned type after indexing.

impl IndexMut<(usize, usize)> for BitmapRGBA8[src]

impl IndexMut<(u32, u32)> for BitmapRGBA8[src]

impl IndexMut<usize> for BitmapRGBA8[src]

impl IndexMut<u32> for BitmapRGBA8[src]

Auto Trait Implementations

Blanket Implementations

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 = !

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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]