pyembroidery/pyembroidery/StxReader.py

13 wiersze
379 B
Python
Czysty Zwykły widok Historia

2018-08-12 02:24:21 +00:00
from .ExpReader import read_exp_stitches
2019-07-13 07:09:52 +00:00
from .ReadHelper import read_int_32le
2018-08-12 02:24:21 +00:00
def read(f, out, settings=None):
# File starts with STX
f.seek(0x0C, 1)
color_start_position = read_int_32le(f)
dunno_block_start_position = read_int_32le(f)
stitch_start_position = read_int_32le(f)
f.seek(stitch_start_position, 0)
read_exp_stitches(f, out)