Rohan,
There are a lot of articles and tutorials on how to do that such as the one provided by ProgramFOX which is a great article.
I worked on a solution for reading and writing barcodes a while back. I took a look at some articles in Codeproject and Stackoverflow like the following:
Barcode Image Generation Library
and done some google search and found tutorials like the following:
Barcode tutorial
After we tried the above tutorial, we choose to go with that toolkit because it gave broader functionalities and better quality and performance.
If you want limited functionalities (Just generate the barcode), the above articles should be sufficient.