Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference

h.eng.cam.ac.uk
from h.eng.cam.ac.uk More from this publisher
12.07.2015 Views

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

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

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

Saved successfully!

Ooh no, something went wrong!