data property
Raw pixel data for the image.
For single-frame images this is exactly frameSize bytes.
For multi-frame images (e.g. animated GIFs) this is frameSize * frameCount bytes.
Implementation
@override get data {
structOnOp((p) {
if (p.ref.data.address != 0) {
_data = p.ref.data.cast<Uint8>().asTypedList(dataLength);
}
});
return _data;
}
Raw pixel data for the image.
For single-frame images this is exactly frameSize bytes.
For multi-frame images (e.g. animated GIFs) this is frameSize * frameCount bytes.
Implementation
@override set data(Uint8List value) {
_data = value;
structOnOp((p) {
if (p.ref.data.address != 0) {
p.ref.data.cast<Uint8>().asTypedList(dataLength).setAll(0, value);
}
});
}