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

Method write_image

src/asynchronous.rs:121–124  ·  view source on GitHub ↗

Writes image data to Stream Deck device, changes must be flushed with `.flush()` before they will appear on the device!

(&self, key: u8, image_data: &[u8])

Source from the content-addressed store, hash-verified

119 /// Writes image data to Stream Deck device, changes must be flushed with `.flush()` before
120 /// they will appear on the device!
121 pub async fn write_image(&self, key: u8, image_data: &[u8]) -> Result<(), StreamDeckError> {
122 let device = self.device.lock().await;
123 block_in_place(move || device.write_image(key, image_data))
124 }
125
126 /// Writes image data to Stream Deck device's lcd strip/screen as region.
127 /// Only Stream Deck Plus supports writing LCD regions, for Stream Deck Neo use write_lcd_fill

Callers 1

set_button_imageMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected