1. A method in a sewing machine that has access to a memory for stitch data and a processor for reading said stitch data and for operating the sewing machine to execute stitches according to stitch data, wherein the sewing machine has a needle that is passed in a reciprocating movement along substantially a normal to a sewing material, and a hoop for framing a pattern of the sewing material, and for moving the framed pattern in a direction comprising a component of at least one of a first coordinate and a second coordinate and wherein further the processor controls movements of the hoop according to said direction in relation to the position of the needle 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 to the hoop for forming a framed pattern in the hoop, and scanning the framed pattern of the sewing material by means of a camera mounted in the sewing machine and directed towards the sewing material by taking pictures of part views of said framed pattern, tiling said part views together for forming on a display 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.