Struct tcod::image::Image
[−]
[src]
pub struct Image { /* fields omitted */ }pub struct Image { /* fields omitted */ }impl Image[src]fn new(width: i32, height: i32) -> Imagefn from_file<T>(path: T) -> Result<Image, Error> where T: AsRef<Path>fn from_console<T>(console: &T) -> Image where T: Consolefn refresh_console<T>(&mut self, console: &T) where T: Consolefn save<T>(&self, path: T) where T: AsRef<Path>fn width(&self) -> i32fn height(&self) -> i32fn get_size(&self) -> (i32, i32)fn get_pixel(&self, x: i32, y: i32) -> Colorfn get_alpha(&self, x: i32, y: i32) -> i32fn is_pixel_transparent(&self, x: i32, y: i32) -> boolfn get_mipmap_pixel(&self, (x0, y0): (f32, f32), (x1, y1): (f32, f32)) -> Colorfn 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_timpl FromNative<TCOD_image_t> for Image[src]unsafe fn from_native(image: TCOD_image_t) -> Image