Intel® Fortran Libraries Reference
Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference
2 Intel Fortran Libraries Referencewc%numtextrows = -1wc%numcolors = -1wc%fontsize = -1wc%title= "I am child window name"Cif (.NOT.status) status = SETWINDOWCONFIG(wc)! put child window list under menu 3 (View)result = SETWINDOWMENUQQ(3)ENDSETWRITEMODEGraphics Function: Sets the current logical write mode, which is used when drawing lines withthe LINETO, POLYGON, and RECTANGLE functions. This function is only available onWindows* systems.Module: USE IFQWINSyntaxresult = SETWRITEMODE (wmode)wmode(Input) INTEGER(2). Write mode to be set. One of the following symbolic constants (defined inIFQWIN.F90):• $GPSET – Causes lines to be drawn in the current graphics color. (Default)• $GAND – Causes lines to be drawn in the color that is the logical AND of the currentgraphics color and the current background color.• $GOR – Causes lines to be drawn in the color that is the logical OR of the current graphicscolor and the current background color.• $GPRESET – Causes lines to be drawn in the color that is the logical NOT of the currentgraphics color.• $GXOR – Causes lines to be drawn in the color that is the logical exclusive OR (XOR) of thecurrent graphics color and the current background color.In addition, one of the following binary raster operation constants can be used (described in theonline documentation for the Windows* API SetROP2):• $GR2_BLACK• $GR2_NOTMERGEPEN• $GR2_MASKNOTPEN• $GR2_NOTCOPYPEN (same as $GPRESET)• $GR2_MASKPENNOT2-436
Descriptions of the Library Routines 2• $GR2_NOT• $GR2_XORPEN (same as $GXOR)• $GR2_NOTMASKPEN• $GR2_MASKPEN (same as $GAND)• $GR2_NOTXORPEN• $GR2_NOP• $GR2_MERGENOTPEN• $GR2_COPYPEN (same as $GPSET)• $GR2_MERGEPENNOT• $GR2_MERGEPEN (same as $GOR)• $GR2_WHITEResults:The result type is INTEGER(2). The result is the previous write mode if successful; otherwise, -1.The current graphics color is set with SETCOLORRGB (or SETCOLOR) and the currentbackground color is set with SETBKCOLORRGB (or SETBKCOLOR). As an example, supposeyou set the background color to yellow (Z'00FFFF') and the graphics color to purple (Z'FF00FF')with the following commands:oldcolor = SETBKCOLORRGB(Z'00FFFF')CALL CLEARSCREEN($GCLEARSCREEN)oldcolor = SETCOLORRGB(Z'FF00FF')If you then set the write mode with the $GAND option, lines are drawn in red (Z'0000FF'); withthe $GOR option, lines are drawn in white (Z'FFFFFF'); with the $GXOR option, lines are drawnin turquoise (Z'FFFF00'); and with the $GPRESET option, lines are drawn in green (Z'00FF00').Setting the write mode to $GPSET causes lines to be drawn in the graphics color.CompatibilitySTANDARD GRAPHICS QUICKWIN GRAPHICS LIBSee Also: “GETWRITEMODE”, “GRSTATUS”, “LINETO, LINETO_W”, “POLYGON,POLYGON_W”, “PUTIMAGE, PUTIMAGE_W”, “RECTANGLE, RECTANGLE_W”,“SETCOLOR”, “SETLINESTYLE”Example! Build as a Graphics ap.USE IFQWININTEGER(2) result, oldmodeINTEGER(4) oldcolorTYPE (xycoord) xy2-437
- Page 438 and 439: 2 Intel Fortran Libraries Reference
- Page 440 and 441: 2 Intel Fortran Libraries Reference
- Page 442 and 443: 2 Intel Fortran Libraries Reference
- Page 444 and 445: 2 Intel Fortran Libraries Reference
- Page 446 and 447: 2 Intel Fortran Libraries Reference
- Page 448 and 449: 2 Intel Fortran Libraries Reference
- Page 450 and 451: 2 Intel Fortran Libraries Reference
- Page 452 and 453: 2 Intel Fortran Libraries Reference
- Page 454 and 455: 2 Intel Fortran Libraries Reference
- Page 456 and 457: 2 Intel Fortran Libraries Reference
- Page 458 and 459: 2 Intel Fortran Libraries Reference
- Page 460 and 461: 2 Intel Fortran Libraries Reference
- Page 462 and 463: 2 Intel Fortran Libraries Reference
- Page 464 and 465: 2 Intel Fortran Libraries Reference
- Page 466 and 467: 2 Intel Fortran Libraries Reference
- Page 468 and 469: 2 Intel Fortran Libraries Reference
- Page 470 and 471: 2 Intel Fortran Libraries Reference
- Page 472 and 473: 2 Intel Fortran Libraries Reference
- Page 474 and 475: 2 Intel Fortran Libraries Reference
- Page 476 and 477: 2 Intel Fortran Libraries Reference
- Page 478 and 479: 2 Intel Fortran Libraries Reference
- Page 480 and 481: 2 Intel Fortran Libraries Reference
- Page 482 and 483: 2 Intel Fortran Libraries Reference
- Page 484 and 485: 2 Intel Fortran Libraries Reference
- Page 486 and 487: 2 Intel Fortran Libraries Reference
- Page 490 and 491: 2 Intel Fortran Libraries Reference
- Page 492 and 493: 2 Intel Fortran Libraries Reference
- Page 494 and 495: 2 Intel Fortran Libraries Reference
- Page 496 and 497: 2 Intel Fortran Libraries Reference
- Page 498 and 499: 2 Intel Fortran Libraries Reference
- Page 500 and 501: 2 Intel Fortran Libraries Reference
- Page 502 and 503: 2 Intel Fortran Libraries Reference
- Page 504 and 505: 2 Intel Fortran Libraries Reference
- Page 506 and 507: 2 Intel Fortran Libraries Reference
- Page 508 and 509: 2 Intel Fortran Libraries Reference
- Page 510 and 511: 2 Intel Fortran Libraries Reference
- Page 512 and 513: 2 Intel Fortran Libraries Reference
- Page 514 and 515: 2 Intel Fortran Libraries Reference
- Page 516 and 517: 2 Intel Fortran Libraries Reference
- Page 518 and 519: 2 Intel Fortran Libraries Reference
- Page 520 and 521: 2 Intel Fortran Libraries Reference
- Page 522 and 523: 2 Intel Fortran Libraries Reference
- Page 524 and 525: 2 Intel Fortran Libraries Reference
- Page 526 and 527: 2 Intel Fortran Libraries Reference
- Page 528 and 529: 2 Intel Fortran Libraries Reference
- Page 530 and 531: 2 Intel Fortran Libraries Reference
- Page 532 and 533: 2 Intel Fortran Libraries Reference
- Page 534 and 535: 2 Intel Fortran Libraries Reference
- Page 536 and 537: 2 Intel Fortran Libraries Reference
Descriptions of the Library Routines 2• $GR2_NOT• $GR2_XORPEN (same as $GXOR)• $GR2_NOTMASKPEN• $GR2_MASKPEN (same as $GAND)• $GR2_NOTXORPEN• $GR2_NOP• $GR2_MERGENOTPEN• $GR2_COPYPEN (same as $GPSET)• $GR2_MERGEPENNOT• $GR2_MERGEPEN (same as $GOR)• $GR2_WHITEResults:The result type is INTEGER(2). The result is the previous write mode if successful; otherwise, -1.The current graphics color is set with SETCOLORRGB (or SETCOLOR) and the currentbackground color is set with SETBKCOLORRGB (or SETBKCOLOR). As an example, supposeyou set the background color to yellow (Z'00FFFF') and the graphics color to purple (Z'FF00FF')with the following commands:oldcolor = SETBKCOLORRGB(Z'00FFFF')CALL CLEARSCREEN($GCLEARSCREEN)oldcolor = SETCOLORRGB(Z'FF00FF')If you then set the write mode with the $GAND option, lines are drawn in red (Z'0000FF'); withthe $GOR option, lines are drawn in white (Z'FFFFFF'); with the $GXOR option, lines are drawnin turquoise (Z'FFFF00'); and with the $GPRESET option, lines are drawn in green (Z'00FF00').Setting the write mode to $GPSET causes lines to be drawn in the graphics color.CompatibilitySTANDARD GRAPHICS QUICKWIN GRAPHICS LIBSee Also: “GETWRITEMODE”, “GRSTATUS”, “LINETO, LINETO_W”, “POLYGON,POLYGON_W”, “PUTIMAGE, PUTIMAGE_W”, “RECTANGLE, RECTANGLE_W”,“SETCOLOR”, “SETLINESTYLE”Example! Build as a Graphics ap.USE IFQWININTEGER(2) result, oldmodeINTEGER(4) oldcolorTYPE (xycoord) xy2-437