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