image class

The class is designed for dealing with images. There may be two types of objects of class image. First type includes objects based on existing images in supported formats, whereas the second-objects created by Parser itself.

One can also retrieve EXIF information from JPEG files (http://www.exif.org
).

For color presentation, Parser uses RGB system, where each shade of color consists of three components (R-Red, G-Green, B-Blue). Each component has value starting with 0x00 and ending with 0xFF (0-255 in decimal system). Final color represents an integer number of format 0xRRGGBB, where each component is allocated two digits in the given sequence. The formula, according to which the color is calculated, is:

(R*0x100+G)*0x100+B

Thus, white color, which has maximum values (FF) for all components, is made up by the formula:

(0xFF*0x100+0xFF)*0x100+0xFF = 0xFFFFFF


Copyright © 1997–2025 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 07.04.2024