| Home | Trees | Indices | Help |
|
|---|
|
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Imports: math, struct, N, numdisplay, ichar
|
|||
Specify the color or the radius.
|
Convert image pixel coords to frame buffer coords (IIS convention).
|
Return a valid color.
|
Save info in local lists list_of_points and last_overlay.
|
Draw a point.
@param x: image X coordinate of point
@type x: int
@param y: image Y coordinate of point
@type y: int
@param center: (x,y) coordinates of point
@type center: tuple
@param color: color code to use; if not specified, use default
@type color: int
@param undo: if specified [default=True], keep track of overlays for undo()
@type undo: bool
syntax:
overlay.point (x=x0, y=y0)
overlay.point (center=(x0,y0))
overlay.point (x=x0, y=y0, color=overlay.C_<color>)
|
Draw a character.
@param x: image X coordinate of point
@type x: int
@param y: image Y coordinate of point
@type y: int
@param mark: character to be drawn
@type mark: string
@param size: magnification to be used in drawing the character
@type size: int
@param color: color code to use; if not specified, use default
@type color: int
@param undo: if specified [default=True], keep track of overlays for undo()
@type undo: bool
syntax:
overlay.marker (x=x0, y=y0, mark='+')
overlay.marker (x=x0, y=y0, mark='+', size=2)
overlay.marker (x=x0, y=y0, mark='+', color=overlay.C_<color>)
|
Draw a rectangle.
@param left: image X coordinate of left edge
@type left: int
@param right: image X coordinate of right edge
@type right: int
@param lower: image Y coordinate of lower edge
@type lower: int
@param upper: image Y coordinate of upper edge
@type upper: int
@param center: (x,y) coordinates of middle of rectangle
@type center: tuple
@param width: width of rectangle (X direction)
@type width: int
@param height: height of rectangle (Y direction)
@type height: int
@param color: color code to use; if not specified, use default
@type color: int
@param undo: if specified [default=True], keep track of overlays for undo()
@type undo: bool
syntax:
overlay.rectangle (left=x1, right=x2, lower=y1, upper=y2)
overlay.rectangle (center=(x0,y0), width=w, height=h)
overlay.rectangle (left=x1, lower=y1, center=(x0,y0))
overlay.rectangle (left=x1, lower=y1, width=w, height=h)
overlay.rectangle (right=x2, upper=y2, width=w, height=h)
overlay.rectangle (right=x2, upper=y2, center=(x0,y0))
overlay.rectangle (left=x1, right=x2, lower=y1, upper=y2,
color=overlay.C_<color>)
|
Draw a circle.
@param x: image X coordinate of center
@type x: int
@param y: image Y coordinate of center
@type y: int
@param center: (x,y) coordinates of center
@type center: tuple
@param radius: radius of circle
@type radius: int
@param color: color code to use; if not specified, use default
@type color: int
@param undo: if specified [default=True], keep track of overlays for undo()
@type undo: bool
syntax:
overlay.circle (x=x0, y=y0, radius=r)
overlay.circle (center=(x0,y0), radius=r)
overlay.circle (x=x0, y=y0, radius=r, color=overlay.C_<color>)
|
Draw a series of connected line segments.
@param points: (x,y) points to connect with line segments
@type points: list of tuples
@param vertices: (x,y) points to connect with line segments
@type vertices: list of tuples
@param color: color code to use; if not specified, use default
@type color: int
@param undo: if specified [default=True], keep track of overlays for undo()
@type undo: bool
syntax:
overlay.polyline (points=[(x1,y1), (x2,y2), (x3,y3)])
overlay.polyline (vertices=[(x1,y1), (x2,y2), (x3,y3)])
overlay.polyline (points=[(x1,y1), (x2,y2), (x3,y3)],
color=overlay.C_<color>)
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Aug 22 15:31:54 2011 | http://epydoc.sourceforge.net |