1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40: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

@@ -33,7 +33,7 @@ unicode_names2 = { version = "0.4.0", default-features = false }
# feature "http":
ehttp = { version = "0.2.0", optional = true }
image = { version = "0.23", default-features = false, features = ["jpeg", "png"], optional = true }
image = { version = "0.24", default-features = false, features = ["jpeg", "png"], optional = true }
poll-promise = { version = "0.1", default-features = false, optional = true }
# feature "syntax_highlighting":

View File

@@ -274,7 +274,6 @@ impl ColoredText {
// ----------------------------------------------------------------------------
fn load_image(image_data: &[u8]) -> Result<egui::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();