Generate and Display Barcode

I would like to know is that possible to generate and draw a barcode from a string. If possible then I would like to know how can I do that. I'm using Waveshare 1.54-inch display and library from the following link:

If anyone can give a suggestion, I would be very much grateful.