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 2Index Color Index Color0 $BLACK 8 $GRAY1 $BLUE 9 $LIGHTBLUE2 $GREEN 10 $LIGHTGREEN3 $CYAN 11 $LIGHTCYAN4 $RED 12 $LIGHTRED5 $MAGENTA 13 $LIGHTMAGENTA6 $BROWN 14 $YELLOW7 $WHITE 15 $BRIGHTWHITEThe number of colors mapped can be fewer than 236 if the number of colors supported by thecurrent video mode is fewer, but at most 236 colors can be mapped byREMAPALLPALETTERGB. Most Windows graphics drivers support a palette of 256K colors ormore, of which only a few can be mapped into the 236 palette indexes at a time. To access and useall colors on the system, bypass the palette and use direct RGB color functions such as such asSETCOLORRGB and SETPIXELSRGB.Any RGB colors can be mapped into the 236 palette indexes. Thus, you could specify a palettewith 236 shades of red. For further details on using different color procedures see "Adding Color"in your user’s guide.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 values you specify with REMAPALLPALETTERGB orREMAPPALETTERGB, red is the rightmost byte, followed by green and blue. The RGB value’sinternal 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 11111111 (hex FF) themaximum for each of the three components. For example, Z'008080' 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.CompatibilitySTANDARD GRAPHICS QUICKWIN GRAPHICS LIB2-373

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

Saved successfully!

Ooh no, something went wrong!