Raster images and work with them

�What image is called a raster


Raster images are made up of tiny square-shaped particles called pixels. These squares are organized in a special rectangular grid. The main characteristics of raster graphics are height and width in pixels and the value of bits per pixel. The last value indicates how many different colors may fall on one such square. If the bitmap image is based on the RGB (Red Green Blue) color model, then each pixel will contain three bytes of the specified colors, and each of these bytes will take a value from 0 to 255. The final one depends on which values Colour.
The quality of this type of image is determined by its resolution and color depth. The first characteristic speaks of how much the pixels are concentrated in the image, the greater their number, the higher the resolution of the graphics. The depth of the color indicates the amount of information that each pixel contains; the more this value, the softer and more pleasant the shades of the image.The disadvantage of raster graphics is scaling: when you increase the clarity is lost, and if the resolution is not high, then individual pixels may appear.

�Raster graphics formats


Files with raster graphics can have different extensions, they use different methods of file compression and quality optimization, depending on the desired result.
BMP�s simple dotted pattern is natively built into the Windows operating system, it does not compress files, and therefore their size is often quite large.
GIF graphics have a small color depth of 8 bits. Such images usually have a small size and allow you to use a transparent background, which is convenient for use on web pages. But such graphics are not suitable for photos.
A JPG format with a depth of 24 bits uses a lossy quality image compression algorithm. It is great for photos because of the support of millions of colors, but every time you save the same photo, it loses quality, but it is small in size.
PNG-type files work with compression algorithms without loss of quality, which eliminates the lack of JPEG.The depth of such images reaches 64 bits, because of which it is possible to transfer a number of colors equal to as many as 16 million. An additional advantage of this vector graphics format is the use of transparency.
TIFF was the format used before PNG, but due to its many variations and the lack of a single processing platform, its support was discontinued. TIFF can compress an image with or without loss of quality.


Related News:


Candlestick from glass
Amazing armchairs from George and Peter Slokoski
Sleep Mask
How to drill tile
From such wedding photos is breathtaking. Oh, those Japanese
25 Ways to Upgrade an Old Fridge