(target: &mut D, offset: Point)
| 43 | } |
| 44 | |
| 45 | pub fn draw_logo<D>(target: &mut D, offset: Point) -> Result<Rectangle, D::Error> |
| 46 | where |
| 47 | D: DrawTarget<Color = Rgb565>, |
| 48 | { |
| 49 | let bmp: Bmp<Rgb565> = Bmp::from_slice(include_bytes!("../assets/logo.bmp")).unwrap(); |
| 50 | let image = Image::new(&bmp, offset); |
| 51 | image.draw(target)?; |
| 52 | |
| 53 | Ok(image.bounding_box()) |
| 54 | } |