A pixel is the smallest component of a display. Raster and vector images differ in how they store image data - raster uses pixels arranged in a grid, while vector uses mathematical objects and lines. When magnified, raster images may lose quality as pixels are enlarged, while vector images maintain quality at any size since they are resolution independent. Both image types have advantages and disadvantages for different uses such as printing.