From f4e8372d472e7313d52538b6f90869029b1e87ae Mon Sep 17 00:00:00 2001 From: "Colin B." Date: Thu, 4 Dec 2025 10:41:44 -0800 Subject: [PATCH] Document removal of ImageDecoderRect --- CHANGES.md | 5 +++++ README.md | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index df6c7bd440..a9688dba2d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,11 @@ ## Changes +### Version Next + +Breaking Changes: + - Trait `ImageDecoderRect` has been removed (#2355, #2681) + ### Version 0.25.9 Features: diff --git a/README.md b/README.md index 9969b59ae2..5de3a6f878 100644 --- a/README.md +++ b/README.md @@ -85,12 +85,10 @@ The coordinates given set the position of the top left corner of the rectangle. This is used to perform image processing functions on a subregion of an image. -## The [`ImageDecoder`](https://docs.rs/image/*/image/trait.ImageDecoder.html) and [`ImageDecoderRect`](https://docs.rs/image/*/image/trait.ImageDecoderRect.html) Traits +## The [`ImageDecoder`](https://docs.rs/image/*/image/trait.ImageDecoder.html) Trait All image format decoders implement the `ImageDecoder` trait which provide -basic methods for getting image metadata and decoding images. Some formats -additionally provide `ImageDecoderRect` implementations which allow for -decoding only part of an image at once. +basic methods for getting image metadata and decoding images. The most important methods for decoders are... + **dimensions**: Return a tuple containing the width and height of the image.