What is a binary pattern?

The term "binary pattern" in computer graphics can have one of two meanings. It can refer to an image that is created using binary or bit mathematical operations on two or more numbers to create a type of visual pattern. It can also be any picture or sequence that consists only of the actual or false pixel values, usually stored in the bytes sequence, such as a bitmap image. In both cases, the final image is created by handling the bits of bytes, which in turn ends directly related to one or more pixels on the display. The use of a binary pattern include masking, creating procedural texture, storage of characters and displaying characters and other visual operations that require a symbol similar to an icon, unlike a full -color image.

In the sense of creating a type of texture, a binary formula is created by using the number or sequence of numbers. Bitwise operators who include A or not, and exclusive or (xor) work that the sequence of bits workand determination of actual or false value based on the state of each of the operand bits. The usual result is the integer that can be divided into red, blue and green values ​​related to the colors on the screen, or can be used as a single byte that is an index into a color table.

different algorithms, loops or other factors can be used to generate numbers sequence that can be used with binary operators to create a recurring binary formula. One example can be seen in the program that Xors X Pixel coordinates only if it is evenly divisible eight. This creates a binary pattern of vertical stripes on the screen, which are 8 pixels apart and increase the brightness of the X coordinates. Masking nature BitWise operations means that the formula can be applied to any existing image or color scheme that causes the poles that appears to be like robrightened or reversed areas of underlying colors unlike a full line.

Further use of the term "binary formula" involves storing images in a binary way, usually as bits of byte. When the picture is drawn, the bytes sequence is considered a grid, each bit corresponding to a pixel to be drawn, even if no color color is stored. This technique was used in early operating systems to store information on how to draw different characters in text mode, where each character was 8 bits wide and 8 bits high, translated into an 8-pixel square on the screen when it was drawn. Some applications still use a binary pattern to store icons, such as the shape of the mouse indicator.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?