Raster images are composed of pixels while vector images are composed of paths. Raster images appear jagged when enlarged but vector images remain smooth at any size. Anti-aliasing uses subtle pixel transitions to minimize the jagged effect in raster images. Vector images are mathematically defined so they appear smooth at any resolution or size. Raster images are best for photos while vector images are suited for illustrations, layouts and type.