Raster graphics
This is done by a part called a Raster Image Processor. Most modern printers have those processors inside the printer. Some printers use a special piece of software on the computer to do that job.