Previous Next blank.gif Home Page

Class Area - Specify a click-sensitive area of an image.


SYNOPSIS

import HTMLgen
class Area
  def __init__(self, **kw)
  string __module__ = 'HTMLgen'
  def __str__(self)

DESCRIPTION

The area is linked to a HREF specified by the href attribute. The coords attribute is required and describes the position of an area (in pixels) of the image in comma-separated x,y coordinates where the upper-left corner is "0,0". For shape='rect' (the default), it is "left,top,right,bottom". For shape='circle', it is "center_x,center_y,radius". For shape='polygon', it is successive x,y vertices of the polygon. If the first and last coordinates are not the same, then a segment is inferred to close the polygon. If no href keyword is given a NOHREF will be generated indicating that this region should generate no links.

Keyword Arguments

href
Typically a reference to an image
coords
string holding a list of coordinates defining
shape
'rect'|'circle'|'polygon'

SEE ALSO

HTMLgen


Previous Next blank.gif Home Page
Buzz.gif

Copyright © Robin Friedrich
All Rights Reserved
Comments to author: friedrich@pythonpros.com
Generated: Sat Mar 7 1998