Chandler scored eight points in the final quarter and Stoudemire added seven for New York, which led 74-72 through three. Stoudemire, the Knicks’ prize free agent acquisition, is hoping to lead New York back to the playoffs for the first time since 2004.

Andrea Bargnani scored 18 points in the first half but had just four in the second for Toronto, which had won eight of its previous nine home openers. The Raptors were playing their first game without star Chris Bosh, who signed with Miami in the offseason. He spent seven years in Toronto.

Toronto’s Reggie Evans had 16 rebounds but the Knicks outrebounded the Raptors 49-45.

Barbosa made a 3-pointer at 10:48 of the fourth, giving Toronto a 77-76 lead, its first since the second quarter. New York reclaimed the lead before Toronto’s David Andersen tied it with a 3-point play. Chandler scored on the next two possessions to give the Knicks a four-point edge, and New York never trailed again.

Jack made two free throws, then added a layup with one minute left, cutting it to 96-93. Kleiza’s 3-pointer rimmed out on the next possession and, after a New York miss, Barbosa airballed a 3 from the corner, giving the Knicks the ball with three seconds remaining. Felton was fouled and iced it with a pair from the line.

Toronto trailed by 16 points early in the second but cut the deficit to one, 44-43, with an 11-0 run capped by a 3-point play by Kleiza with 3:52 left. The Knicks held firm and led 51-47 at the break.

Felton scored seven points in the third as New York carried a two-point edge into the fourth.

After injuring his right wrist when he fell in a preseason victory over the Knicks last week, Barbosa played with a brace. Traded to Toronto this summer in the deal that sent Hedo Turkoglu to the Suns, Barbosa said earlier this week he will likely need surgery on his wrist for the second straight season. He missed almost two months last season after having a cyst removed.

New York’s Ronny Turiaf went down hard after colliding with Stoudemire in the fourth and left the game soon after.

NOTES: Toronto’s Joey Dorsey served a one-game suspension for swinging his arm at Chicago’s Brian Scalabrine in an Oct. 12 preseason game. ... Bargnani addressed fans before the game, thanking them for their support. ... The Raptors swept the four-game series against the Knicks last season.