public static void ApplyLeftPictureModifications(Picture pic, InkCanvas canvas) { var rel = pic.Width/pic.Height; pic.Width = (canvas.Width/2)*4/5; pic.Height = pic.Width/rel; if (pic.Height > canvas.Height*5/6) { pic.Height = canvas.Height*4.5/6; pic.Width = pic.Height*rel; } var position = canvas.CanvasLeftHalfCenterCoordinates(pic.Width, pic.Height); var shiftDown = canvas.Height/12; canvas.SetObjectPositionOnCanvas(pic, position.X, position.Y + shiftDown); }