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

15 lines
532 B
Swift
Raw Normal View History

extension Graphics.Bitmap {
/// The bitmap's dimensions and row stride. Access the pixels themselves
/// with `withPixelData(_:)` and `withMaskData(_:)`.
public struct Data: Sendable {
/// The bitmap's width, in pixels.
public let width: Int
/// The bitmap's height, in pixels.
public let height: Int
/// The stride of one row of pixel (and mask) data, in bytes.
public let rowBytes: Int
/// Whether the bitmap has a mask.
public let hasMask: Bool
}
}