Picture constructor
create Picture
Implementation
Picture(bool isLast, Uint8List rawData, int dataLength)
: super(BlockType.PICTURE, isLast, rawData, dataLength) {
pictureType = _reader.getInt(32);
mimeTypeByteCount = _reader.getInt(32);
mimeString = _reader.getString(mimeTypeByteCount * 8);
descStringByteCount = _reader.getInt(32);
if (descStringByteCount > 0) {
var data = _reader.getUint8List(descStringByteCount * 8);
descString = utf8.decode(data);
}
picPixelWidth = _reader.getInt(32);
picPixelHeight = _reader.getInt(32);
picBitsPerPixel = _reader.getInt(32);
picColorCount = _reader.getInt(32);
picByteCount = _reader.getInt(32);
image = _reader.getUint8List(picByteCount * 8);
}