12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>RGBTOINTEGERQuickWin Function: Converts three integers specifying red, green, and blue color intensitiesinto a four-byte RGB integer for use with RGB functions and subroutines. This function is onlyavailable on Windows* systems.Module: USE IFQWINSyntaxresult = RGBTOINTEGER (red, green, blue)red(Input) INTEGER(4). Intensity of the red component of the RGB color value. Only the lower 8bits of red are used.green(Input) INTEGER(4). Intensity of the green component of the RGB color value. Only the lower 8bits of green are used.blue(Input) INTEGER(4). Intensity of the blue component of the RGB color value. Only the lower 8bits of blue are used.Results:The result type is INTEGER(4). The result is the combined RGB color value.In each RGB color value, each of the three colors, red, green, and blue, is represented by aneight-bit value (2 hex digits). In the value returned with RGBTOINTEGER, red is the rightmostbyte, followed by green and blue. The RGB value’s internal structure is as follows:BitRGB31 (MSB) 24 23 16 15 8 7 0O O O O O O O O B B B B B B B B G G G G G G G G R R R R R R R RLarger numbers correspond to stronger color intensity with binary 1111111 (hex Z'FF') themaximum for each of the three components. For example, Z'0000FF' yields full-intensity red,Z'00FF00' full-intensity green, Z'FF0000' full-intensity blue, and Z'FFFFFF' full-intensity for allthree, resulting in bright white.CompatibilityQUICKWIN GRAPHICS LIB2-378

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!