Crude opium is mostly morphine. It also includes codeine, thebaine, papaverive, and others. The morphine can be further processed with acetic anhydride to produce heroin
That's quite an odd question, because morphine is actually derived from opium! Opium is the latex you get from the opium poppy - papaver somniferum - and it contains several useful opiates including...