I have a shapefile that is a set of polygons. I would like to export it as a black and white image to use as a mask. I'm not incorporating height data (the shapefile only holds 2D data), but encoding whether a pixel is part of a polygon or not so that I get a replica of the spatial layout of the polygons in a raster image.
How would I do this in QGIS? I cannot find an obvious path.