Struct quicksilver::graphics::Image
[−]
[src]
pub struct Image { /* fields omitted */ }
An image that can be drawn to the screen
Methods
impl Image
[src]
fn from_raw(data: &[u8], width: i32, height: i32, format: PixelFormat) -> Image
[src]
Load an image from raw bytes
fn area(&self) -> Rectangle
[src]
The area of the source image this subimage takes up
fn subimage(&self, rect: Rectangle) -> Image
[src]
Find a subimage of a larger image
Trait Implementations
impl Clone for Image
[src]
fn clone(&self) -> Image
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more