| DrawLegendColor |
| |
This function will generate a box with the colour of the graph element |
| |
| Library |
 |
wh::graphics/graphs.whlib |
| |
| Syntax |
 |
PUBLIC BLOB FUNCTION DrawLegendColor (RECORD ARRAY graphdata,INTEGER part,INTEGER width,INTEGER height) |
| |
| Parameters |
 |
| graphdata |
 |
RECORD ARRAY the data the graph was generated with |
| |
The record contains the following cells:
| color |
 |
optional RGB color for this element |
 |
|
 |
| part |
 |
INTEGER Specifies the part for which the coloured box should be generated |
 |
| width |
 |
INTEGER Specifies the width of the generated image |
 |
| height |
 |
INTEGER Specifies the height of the generated image |
 |
|
| |
| Returns |
 |
Blob containing the coloured box as a PNG image |
| |