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