- 4.37.2.4. -
Table of Contents
4. Standard Units
4.37. Graph - Graph unit
4.37.2. Graph Unit Procedures and Functions
4.37.2.4. Bar3D procedure
4.37.2.4. Bar3D procedure
Targets: MS-DOS, Win32
Graph Unit
Draws a 3-D bar using the current fill color.
Declaration:
procedure Bar3D(X1, Y1, X2, Y2: DWORD; Depth: Word; Top: Boolean);
Remarks:
Bar3D draws a filled-in, three-dimensional bar with the pattern and color
defined by SetFillColor,
SetFillPattern or
SetFillStyle.
The 3-D outline of the bar is drawn in the current line style and color
as set by SetLineStyle and
SetColor.
Depth is the length in pixels of the 3-D outline.
If Top is TopOn, a 3-D top is put on the bar;
if Top is TopOff, no top is put on the bar (making it possible
to stack several bars on top of one another).
A typical depth could be calculated by taking 25% of the width of the bar:
Bar3D(X1, Y1, X2, Y2, (X2 - X1 + 1) div 4, TopOn);
- 4.37.2.4. -