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.

Descriptions of the Library Routines 2INTEGER(2) oldtcoldtc = SETTEXTCOLOR(INT2(2)) ! greenWRITE(*,*) "hello, world"ENDSETTEXTCOLORRGBGraphics Function: Sets the current text color to the specified Red-Green-Blue (RGB) value.This function is only available on Windows* systems.Module: USE IFQWINSyntaxresult = SETTEXTCOLORRGB (color)color(Input) INTEGER(4). RGB color value to set the text color to. Range and result depend on thesystem’s display adapter.Results:The result type is INTEGER(4). The result is the previous text 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 you specify with SETTEXTCOLORRGB, 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 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.SETTEXTCOLORRGB sets the current text RGB color. The default value is Z'00FFFFFF', whichis full-intensity white. SETTEXTCOLORRGB sets the color used by OUTTEXT, WRITE, andPRINT. It does not affect the color of text output with the OUTGTEXT font routine. UseSETCOLORRGB to change the color of font output.SETBKCOLORRGB sets the RGB color value of the current background for both text andgraphics. SETCOLORRGB sets the RGB color value of graphics over the background color, usedby the graphics functions such as ARC, FLOODFILLRGB, and OUTGTEXT.2-423

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

Saved successfully!

Ooh no, something went wrong!