OpenDrawing
OpenDrawing ( width ; height ; resolution )
| Argument | Type | Range | Default | Note |
|---|---|---|---|---|
| width | num | 1..10000 | (required) | Dimension:[pt] |
| height | num | 1..10000 | (required) | Dimension:[pt] |
| resolution | num | -1..4 | screen |
Examples
Description
The most important layout function is OpenDrawing(). This function defines the width and height of a drawing in pixels and should always be listed as the first function call. See also Frequently Asked Questions.
| | OPEN_DRAWING_01 |
| 1 | OpenDrawing(250;150) |
| 2 | ChartData(7 5 4 2 1) |
| 3 | BarChart() |
| 4 | /* Set up styles. */ |
| 5 | FillStyle(1;#4682b4) |
| 6 | |
| 7 | /* Set up axes. */ |
| 8 | |
| 9 | AxisMajorTicks(all;0) |
| 10 | /* Set up grid and background. */ |
| 11 | MajorGridLineWidths(y;x;0) |
| 12 | MajorGridLineWidths(x;y;0.25) |
| 13 |
The image resolution can be controlled by the 3rd argument resolution. For details, see Export to FileMaker.