What is the unit of px?
px is the abbreviation of pixel, which is the pixel unit and the basic unit for image display. It is translated from the English "pixel". Pix is the common abbreviation of the English word picture, plus the English word "element" , you get pixel, so "pixel" means "picture element", sometimes also called pel (picture element).
Each such message element is not a point or a square, but an abstract sample. With careful processing, the pixels in an image can look like separate dots or squares at any scale; but in many cases, they appear as dots or squares. Each pixel can have its own color value and can be displayed in three primary colors, so it is divided into three sub-pixels: red, green, and blue (RGB color gamut), or cyan, magenta, yellow, and black (CMYK color gamut, printing industry and printers common in).
Photos are a collection of sampling points. As long as the image has not undergone incorrect/lossy compression or the camera lens is suitable, the more pixels per unit area, the higher the resolution. The image will be close to the real object.
The above is the detailed content of What is the unit of px?. For more information, please follow other related articles on the PHP Chinese website!