You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
- Added `Buffer::pixels()` for accessing the buffer's pixel data.
4
4
- Added `Buffer::pixel_rows()` for iterating over rows of the buffer data.
5
5
- Added `Buffer::pixels_iter()` for iterating over each pixel with its associated `x`/`y` coordinate.
6
+
- Added `Buffer::byte_stride()` for pixel buffers whose rows are aligned and may contain padding bytes at the end. Prefer to use the above helpers instead of accessing pixel data directly.
6
7
-**Breaking:** Removed generic type parameters `D` and `W` from `Buffer<'_>` struct.
7
8
-**Breaking:** Removed `Deref[Mut]` implementation on `Buffer<'_>`. Use `Buffer::pixels()` instead.
0 commit comments