enddraw

BAP Online Manuals : Library Reference : Library by Name : enddraw
Previous: display
Next: eof

6.2.43. enddraw

displays contents of a graphics window

SYNOPSIS

INCLUDE 'graphlib.h'
enddraw(graphwin)

SYNTAX

enddraw(Handle) (i) 

ARGUMENTS

handle(Handle) (i) Virtual file handle associated with the window.

DESCRIPTION

This predicate closes the 'metafile' containing the graphics information for the window associated with Handle and displays its contents. Graphics commands such as filledpolygon or filledellipse executed after an enddraw command will be recorded in a new metafile, allowing a hidden redraw.

EXAMPLE

makegraphwin(Handle,100,100,"Graphic Demo"),
filledpolygon(Handle, Style, [10,10,90,10,90,90,10,90]),
enddraw(Handle),
...
removewindow(Handle,1),!.

ERRORS

No runtime errors.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

makegraphwin , filledellipse , filledpolygon


BAP Online Manuals : Library Reference : Library by Name : enddraw
Previous: display
Next: eof