12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>TYPE xycoordINTEGER(2) xcoordINTEGER(2) ycoordEND TYPE xycoordcpoints(Input) INTEGER(2). Number of polygon vertices.wppoints(Input) Derived type wxycoord. Array of derived types defining the polygon vertices in windowcoordinates. The derived type wxycoord is defined in IFQWIN.F90 as follows:TYPE wxycoordREAL(8) wxREAL(8) wyEND TYPE wxycoordResults:The result type is INTEGER(2). The result is nonzero if anything is drawn; otherwise, 0.The border of the polygon is drawn in the current graphics color, logical write mode, and linestyle, set with SETCOLORRGB, SETWRITEMODE, and SETLINESTYLE, respectively. ThePOLYGON routine uses the viewport-coordinate system (expressed in xycoord derived types),and the POLYGON_W routine uses real-valued window coordinates (expressed in wxycoordtypes).The arguments ppoints and wppoints are arrays whose elements are xycoord or wxycoordderived types. Each element specifies one of the polygon’s vertices. The argument cpoints is thenumber of elements (the number of vertices) in the ppoints or wppoints array.Note that POLYGON draws between the vertices in their order in the array. Therefore, whendrawing outlines, skeletal figures, or any other figure that is not filled, you need to be carefulabout the order of the vertices. If you don’t want lines between some vertices, you may need torepeat vertices to make the drawing backtrack and go to another vertex to avoid drawing acrossyour figure. Also, POLYGON draws a line from the last specified vertex back to the first vertex.If you fill the polygon using FLOODFILLRGB, the polygon must be bordered by a solid linestyle. Line style is solid by default and can be changed with SETLINESTYLE.2-254

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

Saved successfully!

Ooh no, something went wrong!