GuiBitmapBuffer constructor

GuiBitmapBuffer({
  1. required int width,
  2. required int height,
  3. int bitsPerPixel = bitsPerPixelArgb,
})

Create a bitmap buffer with header prepopulated with necessary data. The actual image data must still be populated by the user.

Implementation

GuiBitmapBuffer(
    {required this.width,
    required this.height,
    this.bitsPerPixel = bitsPerPixelArgb}) {
  _prepareHeader();
}