1. A method in a sewing machine ( 1 ) that has access to a memory (M) for stitch data and a processor (C) for reading said stitch data and for operating the sewing machine ( 1 ) to execute stitches according to stitch data, wherein the sewing machine ( 1 ) has a needle ( 5 ) that is passed in a reciprocating movement along substantially a normal to a sewing material ( 2 ), and a hoop ( 20 ) for framing a pattern of the sewing material ( 2 ), and for moving the framed pattern in a direction comprising a component of at least one of a first coordinate (x) and a second coordinate (y) and wherein further the processor (C) controls movements of the hoop ( 20 ) according to said direction in relation to the position of the needle ( 5 ) and synchronously with the movement of the needle for executing stitches, wherein the method is characterized by the steps of: clamping the stretched sewing material ( 2 ) to the hoop ( 20 ) for forming a framed pattern in the hoop, scanning the framed pattern of the sewing material ( 2 ) by means of a camera ( 10 ) mounted in the sewing machine ( 1 ) and directed towards the sewing material ( 2 ), by taking pictures of part views of said framed pattern, tiling said part views together for forming on a display ( 11 ) an image of the pattern framed in the hoop, wherein a coordinate of the image of the display refers to a corresponding coordinate of the pattern framed in the hoop.