From: Heesob Park Date: 2009-01-29T13:33:54+09:00 Subject: Re: Converting binary image file to bmp file using RMagick2.0 2009/1/29 Kamaljeet Saini : > thanks for the reply. > > Whats this terms means: > 1) "0xF800" or "0x7E0" so on... anything specific to anything. 0xF800 is hexadecimal number ant equal to 63488 and 0b1111100000000000 in binary. 0x7E0 is 0b11111100000 RRRRRGGGGGGBBBBB & 0xF800 = RRRRRGGGGGGBBBBB & 0b1111100000000000 = RRRRR00000000000 RRRRRGGGGGGBBBBB & 0x7E0 = RRRRRGGGGGGBBBBB & 0b1111100000000000 = 00000GGGGGG00000 > and > 2) what this means "<<" or ">>" > << is binary left shift operator. The left operands value is moved left by the number of bits specified by the right operand. >> is binary right shift operator. The left operands value is moved right by the number of bits specified by the right operand. RRRRR00000000000 >> 11 = RRRRR 00000GGGGGG00000 >> 5 = GGGGGG RRRRR << 3 = RRRRR000 GGGGGG << 2 = GGGGGG00 Regards, Park Heesob