12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>ExampleUSE IFQWININTEGER(4) bcindexbcindex = GETBKCOLOR()GETBKCOLORRGBGraphics Function: Returns the current background Red-Green-Blue (RGB) color value for bothtext and graphics. This function is only available on Windows* systems.Module: USE IFQWINSyntaxresult = GETBKCOLORRGB ( )Results:The result type is INTEGER(4). The result is the RGB value of the current background color forboth text and graphics.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 you retrieve with GETBKCOLORRGB, red is therightmost byte, 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 FF) the maximumfor 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 all three,resulting in bright white.GETBKCOLORRGB returns the RGB color value of the current background for both text andgraphics, set with SETBKCOLORRGB. The RGB color value of text over the background color(used by text functions such as OUTTEXT, WRITE, and PRINT) is set withSETTEXTCOLORRGB and returned with GETTEXTCOLORRGB. The RGB color value ofgraphics over the background color (used by graphics functions such as ARC, OUTGTEXT, andFLOODFILLRGB) is set with SETCOLORRGB and returned with GETCOLORRGB.SETBKCOLORRGB (and the other RGB color selection functions SETCOLORRGB andSETTEXTCOLORRGB) sets the color to a value chosen from the entire available range. Thenon-RGB color functions (SETBKCOLOR, SETCOLOR, and SETTEXTCOLOR) use colorindexes rather than true color values. If you use color indexes, you are restricted to the colors2-100

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

Saved successfully!

Ooh no, something went wrong!