类型 Bitmap
API 文档由 Go 源码生成,内容为英文。
type Bitmap struct {
Pix []byte
Width, Height int
Stride int
ID uint64
Version uint32
}Bitmap is immutable premultiplied BGRA pixel data. Pixels are stored top row first; Stride is bytes between rows and must be at least Width*4. The caller owns Pix and must keep it unchanged while a canvas can retain it. Native renderers upload the pixels lazily and identify unchanged content by ID and Version, so mutating Pix requires incrementing Version.