public void LoadEmbroidery(Stream embroStream) { _inputStream = embroStream; _header = new DstHeader(embroStream); _inputStream.Position = positionAfterHeader; _design.Blocks = ReadStitches(); }
/// <summary> /// /// </summary> /// <param name="header"></param> void FillHeader(DstHeader header) { header.DesignName = _design.DesignName ?? string.Empty; header.TotalStitchCount = _design.GetTotalStitches(); header.ColorChangeCount = _design.GetColorChanges(); header.Xmax = _design.GetXCoordMax(); header.Xmin = _design.GetXCoordMin(); header.Ymax = _design.GetYCoordMax(); header.Ymin = _design.GetYCoordMin(); header.XOffset = 0; header.YOffset = 0; header.MX = 0; header.MY = 0; }
public DstInfo() { Header = new DstHeader(); }
void Init() { _design = new EmbroideryData(); _header = new DstHeader(); }