There are two main types of computer graphics - raster (composed of pixels) and vector (composed of paths). Raster images are better known as bitmaps and use a grid of pixels, while vector graphics use mathematical relationships between points and paths. Bitmaps look jagged when enlarged but vectors remain smooth at any size. Anti-aliasing can make bitmaps appear smoother by applying subtle pixel transitions along edges. Vectors are best for illustrations and layouts while bitmaps are suited to photos with subtle shading details.