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

Method set_button_image

src/lib.rs:438–442  ·  view source on GitHub ↗

Sets specified button's image, changes must be flushed with `.flush()` before they will appear on the device!

(&self, key: u8, image: DynamicImage)

Source from the content-addressed store, hash-verified

436 /// Sets specified button's image, changes must be flushed with `.flush()` before
437 /// they will appear on the device!
438 pub fn set_button_image(&self, key: u8, image: DynamicImage) -> Result<(), StreamDeckError> {
439 let image_data = convert_image(self.kind, image)?;
440 self.write_image(key, &image_data)?;
441 Ok(())
442 }
443
444 /// Sets specified touch point's led strip color
445 pub fn set_touchpoint_color(&self, point: u8, red: u8, green: u8, blue: u8) -> Result<(), StreamDeckError> {

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls 2

convert_imageFunction · 0.85
write_imageMethod · 0.45

Tested by

no test coverage detected