Private List> GenerateQRCodeStitchesBoxed()īlocks.AddRange(GetRectangleSatin( 0, 0, rectSize - 1, rectSize - 1)) īlocks.Add(GenerateBoxStitchBlock( 2, 2, rectSize - 4)) When property Info of type QRCodeStitchInfo is set then in method SetInfo property Matrix of _info memeber is calculated by GetQrCodeMatrix method. In a line bar step in Y and X axis and cell size are hard coded: dX = 25 dY = 2 cellSize = 25 The units here is 0.1 mm.Ĭlass QRCodeStitcher has class QRCodeCreater as a member _qrCode. Each line contains information about the start point, end point, length of line and a flag of touching the bottom of QR-code.įor second step it goes through each line cell by cell and add zigzagified stitches to each stitch block result. So from the boolean matrix a list of continuous lines is created. To achieve first step it goes throught columns of matrix cells and when next empty cell is detectect then the current line is finished and is added to the result list.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |