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 Referencedegree-tenths(Input) INTEGER(4). Angle of orientation, in tenths of degrees, of the font text output.The orientation of the font text output is set in tenths of degrees. Horizontal is 0°, and anglesincrease counterclockwise so that 900 (90°) is straight up, 1800 (180°) is upside down and left,2700 (270°) is straight down, and so forth. If the user specifies a value greater than 3600 (360°),the subroutine takes a value equal to:MODULO (user-specified tenths of degrees, 3600)Although SETGTEXTROTATION accepts arguments in tenths of degrees, only increments of onefull degree differ visually from each other on the screen.Bitmap fonts cannot be rotated; TruType fonts should be used instead.CompatibilitySTANDARD GRAPHICS QUICKWIN GRAPHICS LIBSee Also: “GETGTEXTROTATION”Example! Build as a Graphics ap.USE IFQWININTEGER(2) fontnum, numfontsINTEGER(4) oldcolor, degTYPE (xycoord) posnumfonts = INITIALIZEFONTS ( )fontnum = SETFONT ('t''Arial''h18w10i')CALL MOVETO (INT2(10), INT2(30), pos)CALL OUTGTEXT('Straight text')deg = -1370CALL SETGTEXTROTATION(deg)oldcolor = SETCOLORRGB(Z'008080')CALL OUTGTEXT('Slanted text')ENDSETLINESTYLEGraphics Subroutine: Sets the current line style to a new line style. This subroutine is onlyavailable on Windows* systems.Module: USE IFQWINSyntaxCALL SETLINESTYLE (mask)2-410

Descriptions of the Library Routines 2mask(Input) INTEGER(2). Desired Quickwin line-style mask. (See the table below.)The mask is mapped to the style that most closely equivalences the percentage of the bits in themask that are set. The style produces lines that cover a certain percentage of the pixels in that line.SETLINESTYLE sets the style used in drawing a line. You can choose from the following styles:QuickWin Mask Internal Windows Style Selection Criteria Appearance0xFFFF PS_SOLID 16 bits on ____________0xEEEE PS_DASH 11 to 15 bits on ---------------------0xECEC PS_DASHDOT 10 bits on -.-.-.-.-.-.-.-.-.-.-.-.0xECCC PS_DASHDOTDOT 9 bits on -..-..-..-..-..-..-..-..0xAAAA PS_DOT 1 to 8 bits on ............................0x0000 PS_NULL 0 bits onSETLINESTYLE affects the drawing of straight lines as in LINETO, POLYGON, andRECTANGLE, but not the drawing of curved lines as in ARC, ELLIPSE, or PIE.The current graphics color is set with SETCOLORRGB or SETCOLOR. SETWRITEMODEaffects how the line is displayed.CompatibilitySTANDARD GRAPHICS QUICKWIN GRAPHICS LIBSee Also: “GETLINESTYLE”, “GRSTATUS”, “LINETO, LINETO_W”, “POLYGON,POLYGON_W”, “RECTANGLE, RECTANGLE_W”, “SETCOLOR”, “SETWRITEMODE”Example! Build as a Graphics ap.USE IFQWININTEGER(2) status, styleTYPE (xycoord) xystyle = Z'FFFF'CALL SETLINESTYLE(style)CALL MOVETO(INT2(50), INT2(50), xy )status = LINETO(INT2(300), INT2(300))END2-411

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>degree-tenths(Input) INTEGER(4). Angle of orientation, in tenths of degrees, of the font text output.The orientation of the font text output is set in tenths of degrees. Horizontal is 0°, and anglesincrease counterclockwise so that 900 (90°) is straight up, 1800 (180°) is upside down and left,2700 (270°) is straight down, and so forth. If the user specifies a value greater than 3600 (360°),the subroutine takes a value equal to:MODULO (user-specified tenths of degrees, 3600)Although SETGTEXTROTATION accepts arguments in tenths of degrees, only increments of onefull degree differ visually from each other on the screen.Bitmap fonts cannot be rotated; TruType fonts should be used instead.CompatibilitySTANDARD GRAPHICS QUICKWIN GRAPHICS LIBSee Also: “GETGTEXTROTATION”Example! Build as a Graphics ap.USE IFQWININTEGER(2) fontnum, numfontsINTEGER(4) oldcolor, degTYPE (xycoord) posnumfonts = INITIALIZEFONTS ( )fontnum = SETFONT ('t''Arial''h18w10i')CALL MOVETO (INT2(10), INT2(30), pos)CALL OUTGTEXT('Straight text')deg = -1370CALL SETGTEXTROTATION(deg)oldcolor = SETCOLORRGB(Z'008080')CALL OUTGTEXT('Slanted text')ENDSETLINESTYLEGraphics Subroutine: Sets the current line style to a new line style. This subroutine is onlyavailable on Windows* systems.Module: USE IFQWINSyntaxCALL SETLINESTYLE (mask)2-410

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

Saved successfully!

Ooh no, something went wrong!