Files
playdate-kit/Sources/PlaydateKit/Graphics/Structures/Bitmap.Data.swift
T

13 lines
408 B
Swift
Raw Normal View History

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.
public let width: Int
2026-09-18 13:15:08 +00:00
/// Height, in pixels.
public let height: Int
2026-09-18 13:15:08 +00:00
/// Row stride of the pixel and mask data, in bytes.
public let rowBytes: Int
2026-09-18 13:15:08 +00:00
public let hasMask: Bool
}
}