Copyright (1999-2008) EDMGROUP Pty Ltd - EZY Prolog Reference

List of predicates for group Graphics and Pictures

[This is preliminary specification and subject to change.]

List of all groups


Type

Predicate

Parameters

Flow pattern

Description

determ

draw_arc

WINDOW ,
RCT BoundRect,
INTEGER StartX,
INTEGER StartY,
INTEGER StopX,
INTEGER StopY

(i, i, i, i, i, i)

Draws an elliptical arc. BoundRect is the bounding rectangle of an ellipse. StartX and StartY are the approximate coordinate of the arc starting point. (It need not lie exactly on the arc.) StopX and StopY are the coordinate of the arc ending point. (This point need not lie exactly on the arc.) The starting point of the arc is defined as the point at which the line drawn from the center of the bounding rectangle and passing through the starting point, intersects the ellipse. The end point of the arc is the point at which the line drawn from the center of the bounding rectangle through the specified end point intersects the ellipse.

determ

draw_ellipse

WINDOW ,
RCT BoundRect

(i, i)

Draws an elliptical arc. BoundRect is the bounding rectangle of an ellipse. StartX and StartY are the approximate coordinate of the arc starting point. (It need not lie exactly on the arc.) StopX and StopY are the coordinate of the arc ending point. (This point need not lie exactly on the arc.) The starting point of the arc is defined as the point at which the line drawn from the center of the bounding rectangle and passing through the starting point, intersects the ellipse. The end point of the arc is the point at which the line drawn from the center of the bounding rectangle through the specified end point intersects the ellipse.

determ

draw_floodfill

WINDOW WINDOW,
PNT StartPoint,
COLOR BoundaryColor

(i, i,i)

Fills an area of the screen surface by using the current brush. The draw_FloodFill fills an area of the screen surface by using the current window brush. The area is assumed to be bounded as specified by the BoundaryColor parameter. The draw_FloodFill function begins at the StartPoint point and continues in all directions to the color boundary. WinHandle should be one of the drawable types. If the StartPoint already has the color BoundaryColor then no fill will take place.

determ

draw_line

WINDOW ,
PNT FROM,
PNT TO

(i,i,i)

The draw_Line predicate draws a line from the Begin position up to, but not including, the End position. The predicate uses the current window pen to draw the line

determ

draw_pie

WINDOW ,
RCT BoundRect,
INTEGER StartX,
INTEGER StartY,
INTEGER StopX,
INTEGER StopY

(i, i, i, i, i, i)

Draws a pie segment bounded by the intersection of an ellipse and two radials.

determ

draw_pixel

WINDOW ,
PNT PNT,
COLOR COLOR

(i,i,i)

Sets a single pixel value.

determ

draw_polygon

WINDOW WinHandle,
PNTLIST Vertices

(i, i)

Draws a polygon. The system closes open polygons by drawing a line from the last vertex to the first. Polygons are drawn by using the windows current pen and filled by using the windows current brush. WinHandle should specify one of the drawable types. Vertices is a list of polygon vertices.

determ

draw_polyline

WINDOW WinHandle,
PNTLIST Vertices

(i, i)

Draws a list of lines. The draw_Polyline draws a set of line segments, connecting the specified points. The lines are drawn from the first point through subsequent points, using the current window pen. WinHandle should specify one of the drawable types.

determ

draw_rect

WINDOW ,
RCT

(i,i)

Draws the rectangle Rect in the specified window WinHandle. The draw_Rect draws the rectangle using the current window pen. The interior of the rectangle is filled using the current window brush. Window WinHandle should specify one of the drawable types.

determ

draw_roundrect

WINDOW WinHandle,
RCT Rect,
INTEGER EllipseWidth,
INTEGER EllipseHeight

(i, i, i, i)

Draws a rectangle with round corners. The draw_RoundRect draws a rectangle with rounded corners, using the current window pen. The interior of the rectangle is filled by using the current brush. WinHandle should specify one of the drawable types.

determ

win_setbackcolor

WINDOW WINDOW,
COLOR COLOR

(i, i)

Sets the foreground color of the window WinHandle. WinHandle should specify a drawable object. If the background mode is bk_Opaque, the system uses the background color to fill the gaps in styled lines, the gaps between hatched lines in brushes, and the background in character cells.

determ

win_setforecolor

WINDOW WINDOW,
COLOR COLOR

(i, i)

Sets the background color of the window WinHandle. WinHandle should specify a drawable object. If the background mode is bk_Opaque, the system uses the background color to fill the gaps in styled lines, the gaps between hatched lines in brushes, and the background in character cells.

determ

win_setpen

WINDOW WINDOW,
PEN PEN

(i, i)

Sets pen to be used for drawing in the window WinHandle. WinHandle should specify a drawable object. The Pen defines the style, width, and color of a pen: pen(Width, Style, Color) Pens whose width is greater than 1 pixel always have the ps_Solid style.


Copyright 1997-2013 EDMGROUP (Australia)