2026-07-25 12:39:32 +02:00
|
|
|
extension Graphics.Bitmap {
|
2026-09-18 13:15:08 +00:00
|
|
|
/// A bitmap's layout. Read pixels with `withPixelData(_:)` and `withMaskData(_:)`.
|
|
|
|
|
public struct Data: Sendable {
|
|
|
|
|
/// Width, in pixels.
|
2026-07-25 12:39:32 +02:00
|
|
|
public let width: Int
|
2026-09-18 13:15:08 +00:00
|
|
|
/// Height, in pixels.
|
2026-07-25 12:39:32 +02:00
|
|
|
public let height: Int
|
2026-09-18 13:15:08 +00:00
|
|
|
/// Row stride of the pixel and mask data, in bytes.
|
2026-07-25 12:39:32 +02:00
|
|
|
public let rowBytes: Int
|
2026-09-18 13:15:08 +00:00
|
|
|
public let hasMask: Bool
|
2026-07-25 12:39:32 +02:00
|
|
|
}
|
|
|
|
|
}
|