Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jul 13, 2024
1 parent db62482 commit 55a564a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion crates/store/re_types/src/archetypes/image_encoded.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion docs/snippets/all/archetypes/image_encoded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

let image = include_bytes!("../../../../crates/viewer/re_ui/data/logo_dark_mode.png");

rec.log("image", &rerun::ImageEncoded::from_bytes(image.to_vec()))?;
rec.log(
"image",
&rerun::ImageEncoded::from_file_contents(image.to_vec()),
)?;

Ok(())
}

0 comments on commit 55a564a

Please sign in to comment.