Seed7 - The extensible programming language
Seed7 FAQ Manual Screenshots Examples Libraries Algorithms Download Links
Libraries AES ARC4 Array ASN.1 Bigfile Bigint Bigrat Bin32 Bin64 Bitdata Bitmapfont Bitset Bitsetof Boolean Browser Bstring Bytedata Cards Category CC config Cgi Cgi dialog Char Charsets Cipher Clib_file Color CLI Commands Complex Console Crc32 Deflate DES Dialog Dir Draw Duration Echo Editline Enable_input Enable_io Enable_output Encoding Environment External_file File File system Float Font Forloop Ftp Getf Gethttp Gethttps Graph Graph_file Gzip Hash Hashsetof Hmac Html_ent Httpserv Idxarray Image Inflate Inflate file Inifile Integer Keybd Line Listener LZW Make Math Msgdigest Null_file Osfiles Picture utility Pixmap_file Pixmapfont PKCS #1 Poll Process Progs Propertyfile Rational Reference Ref_list Scanfile Scanstri Set Shell Smtp Sockbase Socket SQL base Stdio Strifile String Stritext Subrange Tar Text Time TLS/SSL Triple DES Unicode Utf16 Utf8 Vectorfont 3D Vector Window Wrinum X.509 Xmldom Xml_ent Zip
Libraries
Draw Source Code
 previous   up   next 

Function Summary
void
point (inout PRIMITIVE_WINDOW: win, in integer: x, in integer: y, in color: col)
Draws a point with the color 'col' to the window 'win' at the
void
point (in integer: x, in integer: y, in color: col)
Draws a point with the color 'col' to the current window 'curr_win'
void
line (inout PRIMITIVE_WINDOW: win, in integer: x1, in integer: y1, in integer: delta_x, in integer: delta_y, in color: col)
Draws a line with the color 'col' to the window 'win'.
void
line (in integer: x1, in integer: y1, in integer: delta_x, in integer: delta_y, in color: col)
Draws a line with the color 'col' to the current window 'curr_win'.
void
lineTo (inout PRIMITIVE_WINDOW: win, in integer: x1, in integer: y1, in integer: x2, in integer: y2, in color: col)
Draws a line with the color 'col' to the window 'win'.
void
lineTo (in integer: x1, in integer: y1, in integer: x2, in integer: y2, in color: col)
Draws a line with the color 'col' to the current window 'curr_win'.
void
lineToAngle (inout PRIMITIVE_WINDOW: win, in integer: x, in integer: y, in integer: length, in float: angle, in color: col)
Draws a line with the color 'col' to the window 'win'.
void
lineToAngle (in integer: x, in integer: y, in integer: length, in float: angle, in color: col)
Draws a line with the color 'col' to the current window 'curr_win'.
void
rect (inout PRIMITIVE_WINDOW: win, in integer: x1, in integer: y1, in integer: width, in integer: height, in color: col)
Draws a filled rectangle with the color 'col' to the window 'win'.
void
rect (in integer: x1, in integer: y1, in integer: width, in integer: height, in color: col)
Draws a filled rectangle with the color 'col' to the current window 'curr_win'.
void
rectTo (inout PRIMITIVE_WINDOW: win, in integer: x1, in integer: y1, in integer: x2, in integer: y2, in color: col)
Draws a filled rectangle with the color 'col' to the window 'win'.
void
rectTo (in integer: x1, in integer: y1, in integer: x2, in integer: y2, in color: col)
Draws a filled rectangle with the color 'col' to the current window 'curr_win'.
void
box (inout PRIMITIVE_WINDOW: win, in integer: x1, in integer: y1, in integer: width, in integer: height, in color: col)
Draws an empty rectangle with the color 'col' to the window 'win'.
void
box (in integer: x1, in integer: y1, in integer: width, in integer: height, in color: col)
Draws an empty rectangle with the color 'col' to the current window 'curr_win'.
void
boxTo (inout PRIMITIVE_WINDOW: win, in integer: x1, in integer: y1, in integer: x2, in integer: y2, in color: col)
Draws an empty rectangle with the color 'col' to the window 'win'.
void
boxTo (in integer: x1, in integer: y1, in integer: x2, in integer: y2, in color: col)
Draws an empty rectangle with the color 'col' to the current window 'curr_win'.
void
circle (inout PRIMITIVE_WINDOW: win, in integer: x, in integer: y, in integer: radius, in color: col)
Draws a circle with the color 'col' to the window 'win'.
void
circle (in integer: x, in integer: y, in integer: radius, in color: col)
Draws a circle with the color 'col' to the current window 'curr_win'.
void
fcircle (inout PRIMITIVE_WINDOW: win, in integer: x, in integer: y, in integer: radius, in color: col)
Draws a filled circle with the color 'col' to the window 'win'.
void
fcircle (in integer: x, in integer: y, in integer: radius, in color: col)
Draws a filled circle with the color 'col' to the current window 'curr_win'.
void
arc (inout PRIMITIVE_WINDOW: win, in integer: x, in integer: y, in integer: radius, in float: startAngle, in float: sweepAngle, in color: col)
Draws an arc with the color 'col' to the window 'win'.
void
arc (in integer: x, in integer: y, in integer: radius, in float: startAngle, in float: sweepAngle, in color: col)
Draws an arc with the color 'col' to the current window 'curr_win'.
void
pieslice (in integer: x, in integer: y, in integer: radius, in float: startAngle, in float: sweepAngle, in color: col)
Draws a filled sector with color col to curr_win.
void
clear (inout PRIMITIVE_WINDOW: win, in color: col)
Clears the window 'win' with the color 'col'.
void
clear (inout PRIMITIVE_WINDOW: win)
Clears the window 'win' with the color black.
void
clear (in color: col)
Clears the current window 'curr_win' with the color 'col'.
void
polyLine (inout PRIMITIVE_WINDOW: win, in integer: x, in integer: y, in pointList: points, in color: col)
Draws lines with the color 'col' to the window 'win'.
void
polyLine (in integer: x, in integer: y, in pointList: points, in color: col)
Draws lines with the color 'col' to the current window 'curr_win'.
void
fpolyLine (inout PRIMITIVE_WINDOW: win, in integer: x, in integer: y, in pointList: points, in color: col)
Draws a filled polygon with the color 'col' to the window 'win'.
void
fpolyLine (in integer: x, in integer: y, in pointList: points, in color: col)
Draws a filled polygon with the color 'col' to the current window 'curr_win'.
PRIMITIVE_WINDOW
getPixmap (in integer: x1, in integer: y1, in integer: width, in integer: height)
Creates a new pixmap with the given 'width' and 'height'.
PRIMITIVE_WINDOW
getPixmap (in PRIMITIVE_WINDOW: source_win, in integer: x1, in integer: y1, in integer: width, in integer: height)
Creates a new pixmap with the given 'width' and 'height'.
PRIMITIVE_WINDOW
getPixmap (in PRIMITIVE_WINDOW: source_win)
Creates a new pixmap which is a copy from 'source_win'.
PRIMITIVE_WINDOW
newPixmap (in integer: width, in integer: height)
Creates a new pixmap with the given 'width' and 'height'.
color
getPixelColor (in PRIMITIVE_WINDOW: aWindow, in integer: x, in integer: y)
Retrieve the color at pixel position (x, y) from aWindow.
PRIMITIVE_WINDOW
readBmp (in string: file_name)
Reads a bitmap file (extension bmp) into a pixmap.
string
str (in PRIMITIVE_WINDOW: image, BMP)
Converts an image into a string in BMP format.

Function Detail

point

const proc: point (inout PRIMITIVE_WINDOW: win, in integer: x, in integer: y, in color: col)

Draws a point with the color 'col' to the window 'win' at the position (x1, y1).


point

const proc: point (in integer: x, in integer: y, in color: col)

Draws a point with the color 'col' to the current window 'curr_win' at the position (x1, y1).


line

const proc: line (inout PRIMITIVE_WINDOW: win, in integer: x1, in integer: y1, in integer: delta_x, in integer: delta_y, in color: col)

Draws a line with the color 'col' to the window 'win'. The line starts at (x1, y1) and ends at (delta_x, delta_y). The coordinates of the endpoint are measured relative to x1, y1.


line

const proc: line (in integer: x1, in integer: y1, in integer: delta_x, in integer: delta_y, in color: col)

Draws a line with the color 'col' to the current window 'curr_win'. The line starts at (x1, y1) and ends at (delta_x, delta_y). The coordinates of the endpoint are measured relative to x1, y1.


lineTo

const proc: lineTo (inout PRIMITIVE_WINDOW: win, in integer: x1, in integer: y1, in integer: x2, in integer: y2, in color: col)

Draws a line with the color 'col' to the window 'win'. The line starts at (x1, y1) and ends at (x2, y2). The coordinates of the endpoint are measured in absolute window coordinates.


lineTo

const proc: lineTo (in integer: x1, in integer: y1, in integer: x2, in integer: y2, in color: col)

Draws a line with the color 'col' to the current window 'curr_win'. The line starts at (x1, y1) and ends at (x2, y2). The coordinates of the endpoint are measured in absolute window coordinates.


lineToAngle

const proc: lineToAngle (inout PRIMITIVE_WINDOW: win, in integer: x, in integer: y, in integer: length, in float: angle, in color: col)

Draws a line with the color 'col' to the window 'win'. The line starts at (x1, y1), has the given 'length' and extends in the given 'angle'.


lineToAngle

const proc: lineToAngle (in integer: x, in integer: y, in integer: length, in float: angle, in color: col)

Draws a line with the color 'col' to the current window 'curr_win'. The line starts at (x1, y1), has the given 'length' and extends in the given 'angle'.


rect

const proc: rect (inout PRIMITIVE_WINDOW: win, in integer: x1, in integer: y1, in integer: width, in integer: height, in color: col)

Draws a filled rectangle with the color 'col' to the window 'win'. The top left edge of the rectangle is at (x1, y1). The size of the rectangle is specified with 'width' and 'height'.


rect

const proc: rect (in integer: x1, in integer: y1, in integer: width, in integer: height, in color: col)

Draws a filled rectangle with the color 'col' to the current window 'curr_win'. The top left edge of the rectangle is at (x1, y1). The size of the rectangle is specified with 'width' and 'height'.


rectTo

const proc: rectTo (inout PRIMITIVE_WINDOW: win, in integer: x1, in integer: y1, in integer: x2, in integer: y2, in color: col)

Draws a filled rectangle with the color 'col' to the window 'win'. The top left edge of the rectangle is at (x1, y1) and the lower right edge is at (x2, y2).


rectTo

const proc: rectTo (in integer: x1, in integer: y1, in integer: x2, in integer: y2, in color: col)

Draws a filled rectangle with the color 'col' to the current window 'curr_win'. The top left edge of the rectangle is at (x1, y1) and the lower right edge is at (x2, y2).


box

const proc: box (inout PRIMITIVE_WINDOW: win, in integer: x1, in integer: y1, in integer: width, in integer: height, in color: col)

Draws an empty rectangle with the color 'col' to the window 'win'. The top left edge of the rectangle is at (x1, y1). The size of the rectangle is specified with 'width' and 'height'.


box

const proc: box (in integer: x1, in integer: y1, in integer: width, in integer: height, in color: col)

Draws an empty rectangle with the color 'col' to the current window 'curr_win'. The top left edge of the rectangle is at (x1, y1). The size of the rectangle is specified with 'width' and 'height'.


boxTo

const proc: boxTo (inout PRIMITIVE_WINDOW: win, in integer: x1, in integer: y1, in integer: x2, in integer: y2, in color: col)

Draws an empty rectangle with the color 'col' to the window 'win'. The top left edge of the rectangle is at (x1, y1) and the lower right edge is at (x2, y2).


boxTo

const proc: boxTo (in integer: x1, in integer: y1, in integer: x2, in integer: y2, in color: col)

Draws an empty rectangle with the color 'col' to the current window 'curr_win'. The top left edge of the rectangle is at (x1, y1) and the lower right edge is at (x2, y2).


circle

const proc: circle (inout PRIMITIVE_WINDOW: win, in integer: x, in integer: y, in integer: radius, in color: col)

Draws a circle with the color 'col' to the window 'win'. The circle has the given 'radius' and its center is at (x, y).


circle

const proc: circle (in integer: x, in integer: y, in integer: radius, in color: col)

Draws a circle with the color 'col' to the current window 'curr_win'. The circle has the given 'radius' and its center is at (x, y).


fcircle

const proc: fcircle (inout PRIMITIVE_WINDOW: win, in integer: x, in integer: y, in integer: radius, in color: col)

Draws a filled circle with the color 'col' to the window 'win'. The circle has the given 'radius' and its center is at (x, y).


fcircle

const proc: fcircle (in integer: x, in integer: y, in integer: radius, in color: col)

Draws a filled circle with the color 'col' to the current window 'curr_win'. The circle has the given 'radius' and its center is at (x, y).


arc

const proc: arc (inout PRIMITIVE_WINDOW: win, in integer: x, in integer: y, in integer: radius, in float: startAngle, in float: sweepAngle, in color: col)

Draws an arc with the color 'col' to the window 'win'. The arc has the given 'radius' and its center is at (x, y). The arc begins at 'startAngle' and spans over 'sweepAngle'.


arc

const proc: arc (in integer: x, in integer: y, in integer: radius, in float: startAngle, in float: sweepAngle, in color: col)

Draws an arc with the color 'col' to the current window 'curr_win'. The arc has the given 'radius' and its center is at (x, y). The arc begins at 'startAngle' and spans over 'sweepAngle'.


pieslice

const proc: pieslice (in integer: x, in integer: y, in integer: radius, in float: startAngle, in float: sweepAngle, in color: col)

Draws a filled sector with color col to curr_win. The sector has the given 'radius' and its center is at (x, y). The sector begins at 'startAngle' and spans over 'sweepAngle'.


clear

const proc: clear (inout PRIMITIVE_WINDOW: win, in color: col)

Clears the window 'win' with the color 'col'.


clear

const proc: clear (inout PRIMITIVE_WINDOW: win)

Clears the window 'win' with the color black.


clear

const proc: clear (in color: col)

Clears the current window 'curr_win' with the color 'col'.


polyLine

const proc: polyLine (inout PRIMITIVE_WINDOW: win, in integer: x, in integer: y, in pointList: points, in color: col)

Draws lines with the color 'col' to the window 'win'. The lines connect the 'points' and are drawn at the position (x, y).


polyLine

const proc: polyLine (in integer: x, in integer: y, in pointList: points, in color: col)

Draws lines with the color 'col' to the current window 'curr_win'. The lines connect the 'points' and are drawn at the position (x, y).


fpolyLine

const proc: fpolyLine (inout PRIMITIVE_WINDOW: win, in integer: x, in integer: y, in pointList: points, in color: col)

Draws a filled polygon with the color 'col' to the window 'win'. The corners of the polygon are given with 'points'. The polygon is drawn at the position (x, y).


fpolyLine

const proc: fpolyLine (in integer: x, in integer: y, in pointList: points, in color: col)

Draws a filled polygon with the color 'col' to the current window 'curr_win'. The corners of the polygon are given with 'points'. The polygon is drawn at the position (x, y).


getPixmap

const func PRIMITIVE_WINDOW: getPixmap (in integer: x1, in integer: y1, in integer: width, in integer: height)

Creates a new pixmap with the given 'width' and 'height'. A rectangle with the upper left corner at (x1, y1) and the given 'width' and 'height' is copied from 'curr_win' to the new pixmap.

Returns:
the new pixmap.

getPixmap

const func PRIMITIVE_WINDOW: getPixmap (in PRIMITIVE_WINDOW: source_win, in integer: x1, in integer: y1, in integer: width, in integer: height)

Creates a new pixmap with the given 'width' and 'height'. A rectangle with the upper left corner at (x1, y1) and the given 'width' and 'height' is copied from 'source_win' to the new pixmap.

Returns:
the new pixmap.

getPixmap

const func PRIMITIVE_WINDOW: getPixmap (in PRIMITIVE_WINDOW: source_win)

Creates a new pixmap which is a copy from 'source_win'. The content of 'source_win' is copied the new pixmap.

Returns:
the new pixmap.

newPixmap

const func PRIMITIVE_WINDOW: newPixmap (in integer: width, in integer: height)

Creates a new pixmap with the given 'width' and 'height'.

Returns:
the new pixmap.

getPixelColor

const func color: getPixelColor (in PRIMITIVE_WINDOW: aWindow, in integer: x, in integer: y)

Retrieve the color at pixel position (x, y) from aWindow.

Returns:
the pixel color at position (x, y).

readBmp

const func PRIMITIVE_WINDOW: readBmp (in string: file_name)

Reads a bitmap file (extension bmp) into a pixmap.


str

const func string: str (in PRIMITIVE_WINDOW: image, BMP)

Converts an image into a string in BMP format.



 previous   up   next