encode static method
Uint8List
encode(
- XcfDocument document, {
- XcfEnvelope envelope = XcfEnvelope.none,
- XcfWriteOptions options = const XcfWriteOptions(),
Encodes a document with a selected outer envelope and a bounded output.
All three compressed envelopes use ZCodec; XZ uses genuine LZMA2 compression and stores chunks only when compression would expand them.
Implementation
static Uint8List encode(XcfDocument document, {XcfEnvelope envelope = XcfEnvelope.none, XcfWriteOptions options = const XcfWriteOptions()}) => wrap(
XcfCodec.encode(document, options: options),
envelope: envelope,
maxOutputBytes: options.maxOutputBytes,
);