Current location - Training Enrollment Network - Mathematics courses - What is a vector? Bit?
What is a vector? Bit?
About Vector Diagram and Bitmap

Computers can display images in vector or bitmap format. Knowing the difference between them can help you improve your work efficiency. Fireworks allows you to create images with vector or bitmap tools in one software, or import and process vector and bitmap files generated by other applications. Fireworks provides bitmap editing mode and vector editing mode.

vectogram

Vector diagram is called vector because it uses line segments and curves to describe images. At the same time, the graph also contains color and position information. In the following example, the leaf describes the outline of the leaf by connecting a large number of points into curves. Then, according to the outline, fill some colors in the image.

When editing vector graphics, define the properties of lines and curves that describe the shape of the graphics, and these properties will be recorded. Operations on vector graphics, such as moving, redefining the size, redefining the shape or changing the color of vector graphics, will not change the display quality of vector graphics. You can also hide part of a drawing by overlapping vector objects. Or change the transparency of an object. Vector graphics are "resolution independent", that is, when you display or output an image, the image quality is not affected by the resolution of the device. In the example, the image on the right is an enlarged vector graph, and we see that the image quality is not affected.

bitmap

Bitmaps describe images with small points that we call pixels. Your computer screen is actually a grid with a lot of pixels. In the bitmap, the leaf image we see above will be determined by the position and color value of pixels in each grid. The color of each point is fixed. When we watch the image at a higher resolution, each point looks like a mosaic color block, as shown in the right picture in the following example.

When you edit a bitmap, you are actually defining the information of all the pixels in the image bit by bit, instead of just defining the contour lines and curves of the graphics like vector images. Because bitmap images of a certain size are recorded bit by bit with a certain resolution, the quality of these bitmap images is related to the resolution adopted when generating images. When the images are enlarged, they will appear at the edge of the image.

Their simplest difference is:

The loss diagram can be infinitely enlarged without distortion.

Bitmaps don't work.

So many friends' heads are distorted.

It doesn't look very comfortable ...

Hey hey. .....

What's more, bitmap is composed of pixels, while vector graph is composed of vector lines.

This is more professional.

Especially those friends who don't know what pixels are.

Ha ha.

Another difference is that bitmaps can display more colors.

However, there are relatively few loss graphs. ...

Therefore, the most basic thing is these differences.

Loss diagram is widely used in engineering drawing, such as ACD.

Bitmaps are more used in drawing, such as ps.

Bitmap and vector diagram are two concepts in computer graphics. Both of them are widely used in publishing, printing, Internet [such as flash and svg] and other fields. They have their own advantages and disadvantages, and their respective benefits are almost irreplaceable. So for a long time, vectors and bitmaps were applied equally.

Bitmap, also known as bitmap, deleted image and pixel image, is simply a picture whose smallest unit consists of pixels, and scaling will be distorted. The smallest unit of bitmap is pixel, and bitmap is displayed by the arrangement of pixel array. Each pixel has its own color information. When editing a bitmap image, the operable object is each pixel. We can change the hue, saturation and brightness of the image, thus changing the display effect of the image. For example, a bitmap image is like a painting on a huge sand table. From a distance, the picture is delicate and colorful, but if you get close, you can see every grain of sand that makes up the picture and its simple and unchanging color.

Vector, also known as vector graph, is simply to scale the undistorted image format. Vector diagram is generated by combining multiple objects, and the recording mode of each object is realized by mathematical function. In other words, the vector diagram actually records the information of every point on the screen, just the algorithm of element shape and color. When you open a vector diagram, the software operates the function corresponding to the image of the diagram and displays the operation result [shape and color of the diagram] to you. No matter whether the display screen is large or small, the algorithm corresponding to the objects on the screen is unchanged, so even if the screen is scaled by a considerable multiple, the display effect is still the same. For example, a vector diagram is like a diagram drawn on a very good quality rubber film. In the case of constant width and equal proportion, no matter how much the rubber film is stretched, the picture is still clear, and no matter how close you look, you will not see the smallest unit of the picture.

From the figure below, we can easily see the difference between bitmap and vector diagram.

The advantage of bitmap is that it can change the color display effect of any shape area when editing. Accordingly, the more complex the effect, the more pixels are needed, and the larger the size [length and width] and volume [storage space] of the image file.

The advantage of vector is that the shape of contour is easier to modify and control, but for a single object, the realization of color change is not as convenient and direct as bitmap. In addition, applications supporting vector format are far less than those supporting bitmap, and many vector graphics need specially designed programs to open, browse and edit.

Commonly used bitmap drawing software includes adobe photoshop and corel painter, and the corresponding file formats are [. psd。 tif][。 Rif], and there are [. jpg][。 gif][。 png][。 Bmp] and so on.

Commonly used vector drawing software includes adobe illustrator, coreldraw, freehand, flash and so on. , the corresponding file format is [.ai.eps] [. cdr] [。 FH] [。 Fla/。 Swf], the others are [. dwg][。 wmf][。 Electromotive force].

It is easy to convert a vector diagram into a bitmap, but it is not simple to convert a bitmap into a vector diagram, which often requires complicated operations and manual adjustment.

Vector and bitmap can also be used together in applications, such as embedding bitmap in vector files to achieve special effects, and using vector modeling and bitmap mapping in three-dimensional images to achieve realistic visual effects.

See the difference from the picture.