psd_tools.psd.vector
Vector mask, path, and stroke structure.
Path
Subpath
- class psd_tools.psd.vector.Subpath(items=_Nothing.NOTHING, operation: int = 1, unknown1: int = 1, unknown2: int = 0, index: int = 0, unknown3: bytes = b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')[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
PathFillRule
InitialFillRule
VectorMaskSetting
- class psd_tools.psd.vector.VectorMaskSetting(version: int = 3, flags: int = 0, path=None)[source]
VectorMaskSetting structure.
- version
- property disable
Flag to indicate that the vector mask is disabled.
- property invert
Flag to indicate that the vector mask is inverted.
- property not_link
Flag to indicate that the vector mask is not linked.
VectorStrokeContentSetting
- class psd_tools.psd.vector.VectorStrokeContentSetting(items=_Nothing.NOTHING, name: str = '', classID=b'null', key: bytes = b'\x00\x00\x00\x00', version: int = 1)[source]
Dict-like Descriptor-based structure. See
Descriptor
.- key
- version