Digital images can be represented as multidimensional arrays of numbers or vectors. Each component in the image, called a pixel, associates with a pixel value such as intensity or color. To create a digital image, an analog image is sampled and quantized by converting the continuously sensed data into discrete numeric values. Sampling involves assigning numeric coordinates to pixels according to a grid, while quantization assigns numeric values to represent the brightness or color at each pixel location. The number of samples and quantization levels can impact the quality and file size of the digital image.