Trait piet_common::Image

source ·
pub trait Image: Clone {
    fn size(&self) -> Size;
}
Expand description

A trait for a backend’s bitmap image type.

This is cheaply clonable.

Required Methods§

source

fn size(&self) -> Size

The size of the image

Implementations on Foreign Types§

source§

impl Image for CairoImage

source§

fn size(&self) -> Size

Implementors§