I am trying to transform and image from a square into a triangle is there away to do this?

Thank you,
Jeremy H.