Struct leechbar::Image
[−]
[src]
pub struct Image { /* fields omitted */ }
A cached image.
This creates an image that is cached on the X server. Keeping this around instead of moving it will usually lead to a lower CPU consumption but slightly increase the memory usage of the X server.
Methods
impl Image
[src]
fn new(bar: &Bar, image: &DynamicImage) -> Result<Self>
[src]
Create a new image from a
DynamicImage
.