Bournemouth announced the signing of Blackburn Rovers forward Joshua King on a free transfer to a three-year contract.