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:
@@ -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":
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user