psd_tools.psd.vector¶
Vector mask, path, and stroke structure.
Path¶
Subpath¶
-
class
psd_tools.psd.vector.
Subpath
(items=NOTHING, operation: int = 1, unknown1: int = 1, unknown2: int = 0, index: int = 0, unknown3: bytes = b'x00x00x00x00x00x00x00x00x00x00')[source]¶ Subpath element. This is a list of Knot objects.
Note
There are undocumented data associated with this structure.
-
operation
¶ int value indicating how multiple subpath should be combined:
1: Or (union), 2: Not-Or, 3: And (intersect), 0: Xor (exclude)
The first path element is applied to the background surface. Intersection does not have strokes.
-
index
¶ int index that specifies corresponding origination object.
-
Knot¶
-
class
psd_tools.psd.vector.
Knot
(preceding: tuple = (0.0, 0.0), anchor: tuple = (0.0, 0.0), leaving: tuple = (0.0, 0.0))[source]¶ Knot element consisting of 3 control points for Bezier curves.
-
preceding
¶ (y, x) tuple of preceding control point in relative coordinates.
-
anchor
¶ (y, x) tuple of anchor point in relative coordinates.
-
leaving
¶ (y, x) tuple of leaving control point in relative coordinates.
-
ClipboardRecord¶
InitialFillRule¶
VectorMaskSetting¶
-
class
psd_tools.psd.vector.
VectorMaskSetting
(version: int = 3, flags: int = 0, path=None)[source]¶ VectorMaskSetting structure.
-
version
¶
-
disable
¶ Flag to indicate that the vector mask is disabled.
-
invert
¶ Flag to indicate that the vector mask is inverted.
-
not_link
¶ Flag to indicate that the vector mask is not linked.
-