MoveBy() public method

public MoveBy ( float dx, float dy ) : void
dx float
dy float
return void
        public void AddPicture(Bitmap bmp, bool isSelected)
        {
            var pict = new Picture(bmp);

            pict.MoveBy(-20, -20);
            _allPainting.Add(pict);
            _redoStack.Clear();

            if (isSelected)
            {
                SelectedPrimitive = pict;
            }
            UpdateCurrentTool();
            _currentPrimitive = null;

            Invalidate();
        }
		public void AddPicture(Bitmap bmp, bool isSelected)
		{
			var pict = new Picture(bmp);
			pict.MoveBy(-20, -20);
			_allPainting.Add(pict);
			_redoStack.Clear();

			if (isSelected)
				SelectedPrimitive = pict;
			UpdateCurrentTool();
			_currentPrimitive = null;

			Invalidate();
		}