MCPcopy Create free account
hub / github.com/OpenActionAPI/rust-elgato-streamdeck / ImageRect

Class ImageRect

src/images.rs:74–83  ·  view source on GitHub ↗

Rect to be used when trying to send image to lcd screen

Source from the content-addressed store, hash-verified

72
73/// Rect to be used when trying to send image to lcd screen
74pub struct ImageRect {
75 /// Width of the image
76 pub w: u16,
77
78 /// Height of the image
79 pub h: u16,
80
81 /// Data of the image row by row as RGB
82 pub data: Vec<u8>,
83}
84
85impl ImageRect {
86 /// Converts image to image rect

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected