DeMar DeRozan scored 30 points and the Raptors earned a 96-79 win over the Knicks, who suffered their first loss under interim coach Mike Woodson.
Toronto had dropped three straight, including a setback at New York on Tuesday, but got 21 points from Andrea Bargnani and 19 from Gary Forbes to halt the slide.
Amare Stoudemire scored 17 points to pace the Knicks. They had won five in a row since head coach Mike D'Antoni resigned on March 14. Steve Novak had 15 points in the loss while Carmelo Anthony added 12.