psd_tools.psd.vector

Vector mask, path, and stroke structure.

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.

Operation types:

1: Or (union), 2: Not-Or, 3: And (intersect), 4: Xor (exclude), -1: Subtract?
index
operation
classmethod read(fp)[source]

Read the element from a file-like object.

Parameters:fp – file-like object
write(fp)[source]

Write the element to a file-like 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 point for Bezier curves.

..py:attribute: preceding ..py:attribute: anchor ..py:attribute: leaving

anchor
leaving
preceding
classmethod read(fp)[source]

Read the element from a file-like object.

Parameters:fp – file-like object
write(fp)[source]

Write the element to a file-like object.

VectorMaskSetting

class psd_tools.psd.vector.VectorMaskSetting(version: int = 3, flags: int = 0, path=None)[source]

VectorMaskSetting structure.

version
invert
disable
path

VectorStrokeContentSetting

class psd_tools.psd.vector.VectorStrokeContentSetting(items=NOTHING, name: str = '', classID=<DescriptorClassID.NULL: b'null'>, key: bytes = b'x00x00x00x00', version: int = 1)[source]

Dict-like Descriptor-based structure. See Descriptor.

key
version