Expand description
New vector objects: lines and コマ枠 (frame) borders (from name-studio’s clip-core).
A line is written in the layout CSP 5 gives a pen or polyline object
(92-byte header, 88-byte points; see docs/spec/05-vector.md), with the
fields that are not decoded copied from a CSP-made object. A frame
border copies the header and first point of a border CSP made
(FrameTemplate) and sets the corners’ miter values, which CSP uses to
draw the border’s outside edge.
Objects name their brush by BrushStyle.MainId, so the brush style id
must exist in the file the data goes into: take it from an object of the
same file (VectorObject::brush_style).
Structs§
- Frame
Template - The layout of one コマ枠フォルダー border, taken from a CSP-made frame folder: its header and first point, whose undecoded fields new borders keep (header 96 bytes and points 88 bytes in CSP 5).
- NewFrame
- One panel of a コマ枠フォルダー: its outline (layer pixels) and the border’s full width.
- NewVector
Line - A line to draw as a new vector object, in layer pixels.
Functions§
- shape_
signature - A short fingerprint of lines’ shapes (points to the pixel, in order), to tell whether a vector layer still holds what was written into it.