Skip to main content

Module model

Module model 

Source
Expand description

The document model PhotoCraft imports: spreads, artboards, layers, groups, curves, shapes, text and images, with transforms composed into document space. Anything else is reported by Document::warnings instead of being dropped silently.

Structs§

Affine
Affine map x' = a·x + c·y + e, y' = b·x + d·y + f (kurbo’s coefficient order).
Document
Image
Node
Path
An outline in document pixels.
Point
Rect
Spread
SubPath
One cubic Bézier subpath, in document pixels.
Text
TextRun
A run of text with one set of character attributes.

Enums§

Align
Blend
Affinity’s blend modes, numbered by the Blnd enum.
Kind
Pixels

Functions§

read
Read a document: archive, doc.dat and the model.