private void CreateImage(Canvas canvas) { var service = new NumberService(); var img = service .GetBitmapNumber( canvas: canvas, canvasWidth: (int)canvas.Width, canvasHeight: (int)canvas.Height, sizeImg: SIZE, rotate: Rotate, scaleX: ScaleX, scaleY: ScaleY, shiftX: ShiftX, shiftY: ShiftY, skewX: SkewX, skewY: SkewY ); BitmapSource = img; }