Image format used by LCD screen, used for filling LCD
(&self)
| 276 | |
| 277 | /// Image format used by LCD screen, used for filling LCD |
| 278 | pub fn lcd_image_format(&self) -> Option<ImageFormat> { |
| 279 | match self { |
| 280 | Kind::Neo => Some(ImageFormat { |
| 281 | mode: ImageMode::JPEG, |
| 282 | size: (248, 58), |
| 283 | rotation: ImageRotation::Rot180, |
| 284 | mirror: ImageMirroring::None, |
| 285 | }), |
| 286 | Kind::Plus => Some(ImageFormat { |
| 287 | mode: ImageMode::JPEG, |
| 288 | size: (800, 100), |
| 289 | rotation: ImageRotation::Rot0, |
| 290 | mirror: ImageMirroring::None, |
| 291 | }), |
| 292 | Kind::PlusXl => Some(ImageFormat { |
| 293 | mode: ImageMode::JPEG, |
| 294 | size: (100, 1200), |
| 295 | rotation: ImageRotation::Rot270, |
| 296 | mirror: ImageMirroring::None, |
| 297 | }), |
| 298 | _ => None, |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | /// Returns blank image data appropriate for the Stream Deck kind |
| 303 | pub fn blank_image(&self) -> Vec<u8> { |