2.2.41 ImageMapArea
The ImageMapArea record specifies an area in an image map.
-
ImageMapArea = shapeType count coordinates (ToolTip / delimiter)
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
shapeType |
count |
||||||||||||||||||||||||||||||
... |
coordinates (variable) |
||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
toolTip (variable) |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
delimiter |
shapeType (1 byte): A byte that specifies the shape of the area. The value of the shapeType field MUST be specified by the ShapeType enumeration.
count (4 bytes): A signed integer that specifies the number of coordinates record elements in the array.
coordinates (variable): An array of floating point values that specifies the coordinates of the shape, as a percentage of the image size. The number of elements in the array MUST be equal to the value of the count field.<13>
-
For a polygon shape, the coordinates array MUST have an even length and consist of X, Y coordinate pairs. Every even array element is a horizontal X coordinate and every odd array element is a vertical Y coordinate.
-
For a circle shape, there are exactly three elements in the coordinates array; these elements MUST occur in this order: the first two are the X and Y coordinates of the center of the circle, and the third element is the radius of the circle.
-
For a rectangle shape, there are four elements in the coordinates array; these elements MUST occur in this order: left, top, width, and height.
toolTip (variable): A ToolTip property that specifies the textual label for the image map area. This is an optional field that MUST be present only if the delimiter field is not specified.
delimiter (1 byte): A byte that specifies the end of an ImageMapArea record. The value of the delimiter field MUST be 0xFF. This is an optional field that MUST be present only if the tooltip field is not specified.