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 2SETPIXELRGB, SETPIXELRGB_WGraphics Functions: Set a pixel at a specified location to the specified Red-Green-Blue (RGB)color value. These functions are only available on Windows* systems.Module: USE IFQWINSyntaxresult = SETPIXELRGB (x, y, color)result = SETPIXELRGB_W (wx, wy, color)x, y(Input) INTEGER(2). Viewport coordinates for target pixel.wx, wy(Input) REAL(8). Window coordinates for target pixel.color(Input) INTEGER(4). RGB color value to set the pixel to. Range and result depend on thesystem’s display adapter.Results:The result type is INTEGER(4). The result is the previous RGB color value of the pixel.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 SETPIXELRGB orSETPIXELRGB_W, 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 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.If any of the pixels are outside the clipping region, those pixels are ignored.SETPIXELRGB (and the other RGB color selection functions such as SETPIXELSRGB,SETCOLORRGB) sets the color to a value chosen from the entire available range. The non-RGBcolor functions (such as SETPIXELS and SETCOLOR) use color indexes rather than true colorvalues.2-417

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

Saved successfully!

Ooh no, something went wrong!