Digital images can be either raster or vector images. Raster images are made up of grids of pixels that each have a color value, while vector images use geometric shapes and mathematical expressions. The color depth, or bit depth, determines the number of possible colors for each pixel in a raster image and affects the image size. Vector images can be scaled to any size without losing quality since they are based on mathematical expressions rather than pixels.