ryankurte / rust-streamdeck

libusb based driver for Elgato StreamDeck devices
Mozilla Public License 2.0
57 stars 24 forks source link

Separate loading image files from setting button images #17

Closed fhars closed 2 years ago

fhars commented 2 years ago

This makes it possible to load an image once and then reuse it, which saves a lot of image processing if one wants to use the same image multiple times (for e.g. status displays or games).

ryankurte commented 2 years ago

hey thanks for the PR, looks good to me! might be worth keeping track of the image size or the device it was loaded for or something in DeviceImage in future so we can catch if an image was loaded for the wrong device (though i don't know how many people will be using this with more than one streamdeck)

ryankurte commented 2 years ago

Released in v0.5.0 ^_^