A swap file and a swap partition are two different things. Changing the size of a swap file should be as easy as deleting the old one, and making a newer one in it's place.
Changing a swap partition will require using a tool like partd or partition magic (use partd...)