Struct tcod::image::Image
[−]
[src]
pub struct Image { /* fields omitted */ }
pub struct Image { /* fields omitted */ }
impl Image
[src]fn new(width: i32, height: i32) -> Image
fn from_file<T>(path: T) -> Result<Image, Error> where T: AsRef<Path>
fn from_console<T>(console: &T) -> Image where T: Console
fn refresh_console<T>(&mut self, console: &T) where T: Console
fn save<T>(&self, path: T) where T: AsRef<Path>
fn width(&self) -> i32
fn height(&self) -> i32
fn get_size(&self) -> (i32, i32)
fn get_pixel(&self, x: i32, y: i32) -> Color
fn get_alpha(&self, x: i32, y: i32) -> i32
fn is_pixel_transparent(&self, x: i32, y: i32) -> bool
fn get_mipmap_pixel(&self, (x0, y0): (f32, f32), (x1, y1): (f32, f32)) -> Color
fn set_key_color(&mut self, color: Color)
fn clear(&mut self, color: Color)
fn put_pixel(&mut self, x: i32, y: i32, color: Color)
fn scale(&mut self, width: i32, height: i32)
fn hflip(&mut self)
fn vflip(&mut self)
fn rotate90(&mut self, num_rotations: i32)
fn invert(&mut self)
impl AsNative<TCOD_image_t> for Image
[src]unsafe fn as_native(&self) -> &TCOD_image_t
impl FromNative<TCOD_image_t> for Image
[src]unsafe fn from_native(image: TCOD_image_t) -> Image