XcfDocumentMetadata extension

Typed document metadata with raw property preservation for unrelated fields.

on

Properties

guides → List<XcfGuide>

Available on XcfDocument, provided by the XcfDocumentMetadata extension

Guides in source order; unknown directions are retained numerically.
no setter
resolution → XcfResolution?

Available on XcfDocument, provided by the XcfDocumentMetadata extension

Saved print resolution, or null when the property is absent.
no setter
samplePoints → List<XcfSamplePoint>

Available on XcfDocument, provided by the XcfDocumentMetadata extension

Sampling markers; modern properties take precedence over legacy records.
no setter
unitId → int?

Available on XcfDocument, provided by the XcfDocumentMetadata extension

Built-in numeric unit identifier; custom units are exposed separately.
no setter
userUnit → XcfUserUnit?

Available on XcfDocument, provided by the XcfDocumentMetadata extension

Custom unit with a layout determined by this document's version.
no setter

Methods

configuration(String name) → XcfConfiguration?

Available on XcfDocument, provided by the XcfDocumentMetadata extension

Reads a named configuration parasite, for example gimp-image-grid.
withConfiguration(String name, XcfConfiguration value) → XcfDocument

Available on XcfDocument, provided by the XcfDocumentMetadata extension

Replaces a configuration while retaining its parasite flags and terminator.
withGuides(List<XcfGuide> values) → XcfDocument

Available on XcfDocument, provided by the XcfDocumentMetadata extension

Replaces guides without silently upgrading the selected format version.
withResolution(XcfResolution value) → XcfDocument

Available on XcfDocument, provided by the XcfDocumentMetadata extension

Replaces horizontal and vertical resolution.
withSamplePoints(List<XcfSamplePoint> values, {bool legacy = false}) → XcfDocument

Available on XcfDocument, provided by the XcfDocumentMetadata extension

Writes modern sample points, or legacy pairs with an explicit loss check.
withUnitId(int value) → XcfDocument

Available on XcfDocument, provided by the XcfDocumentMetadata extension

Sets a built-in unit and removes any custom-unit definition.
withUserUnit(XcfUserUnit value) → XcfDocument

Available on XcfDocument, provided by the XcfDocumentMetadata extension

Sets a custom unit using this document's format version.