# ThumbImageBuffer (/zh-CN/api-reference/rtc/flutter/class-thumbimagebuffer)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="class_thumbimagebuffer__prototype"></a>

```dart
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);
}
```

<a id="class_thumbimagebuffer__detailed_desc"></a>

:::note
注： 图像默认为 ARGB 格式。如果你需要使用其他格式，请自行转换格式。
:::

<a id="class_thumbimagebuffer__parameters"></a>

## 属性 [#属性]

<ParameterList>
<a id="buffer"></a>
<Parameter name="buffer">

缩略图或图标的 buffer。

</Parameter>
<a id="length"></a>
<Parameter name="length">

缩略图或图标的 buffer 长度，单位为字节。

</Parameter>
<a id="width"></a>
<Parameter name="width">

缩略图或图标的实际宽度（px）。

</Parameter>
<a id="height"></a>
<Parameter name="height">

缩略图或图标的实际高度（px）。

</Parameter>
</ParameterList>
