ThumbImageBuffer
- Flutter
更新时间不可用
缩略图或图标的图像内容。在 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);
}注: 图像默认为 ARGB 格式。如果你需要使用其他格式,请自行转换格式。