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 2wx, wy(Input) REAL(8). Window coordinates for pixel position.Results:The result type is INTEGER(4). The result is the pixel’s current 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 retrieve with GETPIXELRGB, 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'00FF0' full-intensity green, Z'FF0000' full-intensity blue, and Z'FFFFFF' full-intensity for allthree, resulting in bright white.GETPIXELRGB returns the true color value of the pixel, set with SETPIXELRGB,SETCOLORRGB, SETBKCOLORRGB, or SETTEXTCOLORRGB, depending on the pixel’sposition and the current configuration of the screen.SETPIXELRGB (and the other RGB color selection functions SETCOLORRGB,SETBKCOLORRGB, and SETTEXTCOLORRGB) sets colors to a color value chosen from theentire available range. The non-RGB color functions (SETPIXELS, SETCOLOR,SETBKCOLOR, and SETTEXTCOLOR) use color indexes rather than true color values. If youuse color indexes, you are restricted to the colors available in the palette, at most 256. Somedisplay adapters (SVGA and true color) are capable of creating 262,144 (256K) colors or more. Toaccess any available color, you need to specify an explicit Red-Green-Blue (RGB) value with anRGB color function, rather than a palette index with a non-RGB color function.CompatibilitySTANDARD GRAPHICS QUICKWIN GRAPHICS LIBSee Also: “SETPIXELRGB, SETPIXELRGB_W”, “GETPIXELSRGB”, “SETPIXELSRGB”,“GETPIXEL, GETPIXEL_W”Example! Build as QuickWin or Standard GraphicsUSE IFQWININTEGER(4) pixcolor, rseedINTEGER(2) status2-137

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

Saved successfully!

Ooh no, something went wrong!