ThumbImageBuffer
The image content of the 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 default image is in the ARGB format. If you need to use another format, you need to convert the image on your own.
Attributes
- buffer
- The buffer of the thumbnail or icon.
- length
- The buffer length of the thumbnail or icon, in bytes.
- width
- The actual width (px) of the thumbnail or icon.
- height
- The actual height (px) of the thumbnail or icon.