Tightened the source code and README documentations in the library.

This commit is contained in:
2026-09-18 12:45:39 +02:00
parent c9f887bacb
commit 9ae10590cc
97 changed files with 854 additions and 1142 deletions
@@ -1,14 +1,12 @@
extension Graphics.Bitmap {
/// The bitmap's dimensions and row stride. Access the pixels themselves
/// with `withPixelData(_:)` and `withMaskData(_:)`.
/// A bitmap's layout. Read pixels with `withPixelData(_:)` and `withMaskData(_:)`.
public struct Data: Sendable {
/// The bitmap's width, in pixels.
/// Width, in pixels.
public let width: Int
/// The bitmap's height, in pixels.
/// Height, in pixels.
public let height: Int
/// The stride of one row of pixel (and mask) data, in bytes.
/// Row stride of the pixel and mask data, in bytes.
public let rowBytes: Int
/// Whether the bitmap has a mask.
public let hasMask: Bool
}
}