Tightened the source code and README documentations in the library.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user