How to make a rounded border with blits

I’ve seen lightning examples there is an example for a border, but not work for (Blits) can you please help me to show example with Blits or guide me with code.