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
@@ -8,6 +8,7 @@
8
8
- Added `Buffer::pixels_iter()` for iterating over each pixel with its associated `x`/`y` coordinate.
9
9
- 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.
10
10
- Renamed `Surface::buffer_mut()` to `Surface::next_buffer()`.
11
+
- Added `Buffer::data_u8()` and `Buffer::rows_u8()` for accessing the buffer's data as `u8` slices.
11
12
-**Breaking:** Add `Pixel` struct, and use that for pixels instead of `u32`.
12
13
-**Breaking:** The pixel format is now target-dependent. Access `PixelFormat::default()` to see which format is used on the current platform.
13
14
-**Breaking:** Removed generic type parameters `D` and `W` from `Buffer<'_>` struct.
0 commit comments