The shooting was reported about 1 a.m. in the 1800 block of Gramercy Avenue, said Shane Carringer, a spokesman for the Anaheim Police Department.
According to investigators, the victim was shot in the face and was conscious and talking while being transported to hospital.
Zodiac Killer's '340 Cipher' sent to San Francisco Chronicle 51 years ago reportedly solved by code experts
A SWAT team responded to the scene, where the suspect eventually jumped out of a broken window and landed on a car.
A K-9 dog pounced on the man, who was then taken into custody by officers.
The suspect suffered minor injuries and was taken to a hospital for treatment, authorities said. His name was not immediately released.