Raster images such as bitmaps use a grid of pixels to represent images at a fixed resolution, so they can lose quality when magnified. Vector images use mathematical coordinates to describe shapes and lines, allowing them to be scaled and resized without losing clarity. Raster is best for photos while vector is preferred for logos and artwork used at various sizes. Both formats can be used together, with vector supporting raster images.