pub trait Image { fn dimensions(&self) -> (u32, u32); fn get_pixel(&self, x: u32, y: u32) -> [u8; 4]; }
Provides access to image data.
Returns the dimensions of the image.
Returns the channel data for a given pixel, in RGBA format.