[][src]Trait blockhash::Image

pub trait Image {
    fn dimensions(&self) -> (u32, u32);
fn get_pixel(&self, x: u32, y: u32) -> [u8; 4]; }

Provides access to image data.

Required methods

fn dimensions(&self) -> (u32, u32)

Returns the dimensions of the image.

fn get_pixel(&self, x: u32, y: u32) -> [u8; 4]

Returns the channel data for a given pixel, in RGBA format.

Loading content...

Implementors

impl<T, P> Image for T where
    T: GenericImageView<Pixel = P>,
    P: Pixel<Subpixel = u8>, 
[src]

Loading content...