Struct leanshot_xlib::Image [−][src]
pub struct Image { /* fields omitted */ }
A handle to an XImage.
Methods
impl Image
[src]
impl Image
pub fn get_size(&self) -> usize
[src]
pub fn get_size(&self) -> usize
Get the size (in bytes) of the data buffer.
pub fn get_width(&self) -> u32
[src]
pub fn get_width(&self) -> u32
Get the image width
pub fn get_height(&self) -> u32
[src]
pub fn get_height(&self) -> u32
Get the image height
pub fn get_depth(&self) -> u32
[src]
pub fn get_depth(&self) -> u32
Get the image depth
pub fn get_byte_order(&self) -> Result<ImageByteOrder, X11Error>
[src]
pub fn get_byte_order(&self) -> Result<ImageByteOrder, X11Error>
Get byte order
pub fn buffer(&self) -> PixBuffer
[src]
pub fn buffer(&self) -> PixBuffer
Produces a PixBuffer