Intel® Fortran Libraries Reference
Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference
2 Intel Fortran Libraries ReferenceModule: USE IFPORTSyntaxresult = INTC (i)i(Input) INTEGER(4). A value or expression.Results:The result type is INTEGER(2). The result is the value of i with type INTEGER(2). Overflow isignored.INTEGERTORGBQuickWin Subroutine: Converts an RGB color value into its red, green, and blue components.This subroutine is only available on Windows* systems.Module: USE IFQWINSyntaxCALL INTEGERTORGB (rgb, red, green, blue)rgb(Input) INTEGER(4). RGB color value whose red, green, and blue components are to be returned.red(Output) INTEGER(4). Intensity of the red component of the RGB color value.green(Output) INTEGER(4). Intensity of the green component of the RGB color value.blue(Output) INTEGER(4). Intensity of the blue component of the RGB color value.INTEGERTORGB separates the four-byte RGB color value into the three components 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 RCompatibilityQUICKWIN GRAPHICS WINDOWS LIB2-180
Descriptions of the Library Routines 2See Also: “RGBTOINTEGER”, “GETCOLORRGB”, “GETBKCOLORRGB”,“GETPIXELRGB, GETPIXELRGB_W”, “GETPIXELSRGB”, “GETTEXTCOLORRGB”,"Using QuickWin" in your user’s guideExample! build as a QuickWin App.USE IFQWININTEGER(4) r, g, bCALL INTEGERTORGB(2456, r, g, b)write(*,*) r, g, bENDIPXFARGCPOSIX Function: Returns the index of the last command-line argument.Module: USE IFPOSIXSyntaxresult = IPXFARGC ( )Results:The result type is INTEGER(4). The result value is the number of command-line arguments,excluding the command name, in the command used to invoke the executing program. A returnvalue of zero indicates there are no command-line arguments other than the command name itself.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “PXFGETARG”IPXFCONSTPOSIX Function: Returns the value associated with a constant defined in the C POSIX standard.Module: USE IFPOSIXSyntaxresult = IPXFCONST (constname)constname(Input) Character. The name of a C POSIX standard constant.2-181
- Page 182 and 183: 2 Intel Fortran Libraries Reference
- Page 184 and 185: 2 Intel Fortran Libraries Reference
- Page 186 and 187: 2 Intel Fortran Libraries Reference
- Page 188 and 189: 2 Intel Fortran Libraries Reference
- Page 190 and 191: 2 Intel Fortran Libraries Reference
- Page 192 and 193: 2 Intel Fortran Libraries Reference
- Page 194 and 195: 2 Intel Fortran Libraries Reference
- Page 196 and 197: 2 Intel Fortran Libraries Reference
- Page 198 and 199: 2 Intel Fortran Libraries Reference
- Page 200 and 201: 2 Intel Fortran Libraries Reference
- Page 202 and 203: 2 Intel Fortran Libraries Reference
- Page 204 and 205: 2 Intel Fortran Libraries Reference
- Page 206 and 207: 2 Intel Fortran Libraries Reference
- Page 208 and 209: 2 Intel Fortran Libraries Reference
- Page 210 and 211: 2 Intel Fortran Libraries Reference
- Page 212 and 213: 2 Intel Fortran Libraries Reference
- Page 214 and 215: 2 Intel Fortran Libraries Reference
- Page 216 and 217: 2 Intel Fortran Libraries Reference
- Page 218 and 219: 2 Intel Fortran Libraries Reference
- Page 220 and 221: 2 Intel Fortran Libraries Reference
- Page 222 and 223: 2 Intel Fortran Libraries Reference
- Page 224 and 225: 2 Intel Fortran Libraries Reference
- Page 226 and 227: 2 Intel Fortran Libraries Reference
- Page 228 and 229: 2 Intel Fortran Libraries Reference
- Page 230 and 231: 2 Intel Fortran Libraries Reference
- Page 234 and 235: 2 Intel Fortran Libraries Reference
- Page 236 and 237: 2 Intel Fortran Libraries Reference
- Page 238 and 239: 2 Intel Fortran Libraries Reference
- Page 240 and 241: 2 Intel Fortran Libraries Reference
- Page 242 and 243: 2 Intel Fortran Libraries Reference
- Page 244 and 245: 2 Intel Fortran Libraries Reference
- Page 246 and 247: 2 Intel Fortran Libraries Reference
- Page 248 and 249: 2 Intel Fortran Libraries Reference
- Page 250 and 251: 2 Intel Fortran Libraries Reference
- Page 252 and 253: 2 Intel Fortran Libraries Reference
- Page 254 and 255: 2 Intel Fortran Libraries Reference
- Page 256 and 257: 2 Intel Fortran Libraries Reference
- Page 258 and 259: 2 Intel Fortran Libraries Reference
- Page 260 and 261: 2 Intel Fortran Libraries Reference
- Page 262 and 263: 2 Intel Fortran Libraries Reference
- Page 264 and 265: 2 Intel Fortran Libraries Reference
- Page 266 and 267: 2 Intel Fortran Libraries Reference
- Page 268 and 269: 2 Intel Fortran Libraries Reference
- Page 270 and 271: 2 Intel Fortran Libraries Reference
- Page 272 and 273: 2 Intel Fortran Libraries Reference
- Page 274 and 275: 2 Intel Fortran Libraries Reference
- Page 276 and 277: 2 Intel Fortran Libraries Reference
- Page 278 and 279: 2 Intel Fortran Libraries Reference
- Page 280 and 281: 2 Intel Fortran Libraries Reference
2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>Module: USE IFPORTSyntaxresult = INTC (i)i(Input) INTEGER(4). A value or expression.Results:The result type is INTEGER(2). The result is the value of i with type INTEGER(2). Overflow isignored.INTEGERTORGBQuickWin Subroutine: Converts an RGB color value into its red, green, and blue components.This subroutine is only available on Windows* systems.Module: USE IFQWINSyntaxCALL INTEGERTORGB (rgb, red, green, blue)rgb(Input) INTEGER(4). RGB color value whose red, green, and blue components are to be returned.red(Output) INTEGER(4). Intensity of the red component of the RGB color value.green(Output) INTEGER(4). Intensity of the green component of the RGB color value.blue(Output) INTEGER(4). Intensity of the blue component of the RGB color value.INTEGERTORGB separates the four-byte RGB color value into the three components 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 RCompatibilityQUICKWIN GRAPHICS WINDOWS LIB2-180