ThumbImageBuffer
Image content of a thumbnail or icon. Set in ScreenCaptureSourceInfo.
class ThumbImageBuffer {
const ThumbImageBuffer({this.buffer, this.length, this.width, this.height});
@JsonKey(name: 'buffer', ignore: true)
final Uint8List? buffer;
@JsonKey(name: 'length')
final int? length;
@JsonKey(name: 'width')
final int? width;
@JsonKey(name: 'height')
final int? height;
factory ThumbImageBuffer.fromJson(Map<String, dynamic> json) =>
_$ThumbImageBufferFromJson(json);
Map<String, dynamic> toJson() => _$ThumbImageBufferToJson(this);
}
Note: The image is in ARGB format by default. If you need to use a different format, please convert it yourself.
Properties
- buffer
- Buffer of the thumbnail or icon.
- length
- Length of the thumbnail or icon buffer in bytes.
- width
- Actual width of the thumbnail or icon (px).
- height
- Actual height of the thumbnail or icon (px).