1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Update image 0.23 -> 0.24

This commit is contained in:
Emil Ernerfeldt
2022-02-04 13:20:18 +01:00
parent 8dfa6ce2f0
commit 47038c631e
9 changed files with 82 additions and 32 deletions

View File

@@ -70,7 +70,6 @@ impl ColorImage {
/// ## Example using the [`image`](crates.io/crates/image) crate:
/// ``` ignore
/// fn load_image_from_path(path: &std::path::Path) -> Result<egui::ColorImage, image::ImageError> {
/// use image::GenericImageView as _;
/// let image = image::io::Reader::open(path)?.decode()?;
/// let size = [image.width() as _, image.height() as _];
/// let image_buffer = image.to_rgba8();
@@ -82,7 +81,6 @@ impl ColorImage {
/// }
///
/// fn load_image_from_memory(image_data: &[u8]) -> Result<ColorImage, image::ImageError> {
/// use image::GenericImageView as _;
/// let image = image::load_from_memory(image_data)?;
/// let size = [image.width() as _, image.height() as _];
/// let image_buffer = image.to_rgba8();