I think heroin comes from refined opium. Hence the term opoid. Allthough it refers to a specific receptor in the brain the a specific nameless poppy is preety good at blocking.
Now that I think about it, I think opoids are converted into morphine or something like that in the liver.