Wrap Screenshot::bytes in an Arc and implement AsRef<[u8]>
This commit is contained in:
parent
7adfaa88a6
commit
5324928044
2 changed files with 16 additions and 5 deletions
|
|
@ -133,7 +133,7 @@ impl Application for Example {
|
|||
image(image::Handle::from_pixels(
|
||||
screenshot.size.width,
|
||||
screenshot.size.height,
|
||||
screenshot.bytes.clone(),
|
||||
screenshot.clone(),
|
||||
))
|
||||
.content_fit(ContentFit::ScaleDown)
|
||||
.width(Length::Fill)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue