Previous: Bar procedure To the Table of Content Next: Circle procedure

- 4.37.2.4 -
Standard Units
Graph Unit
Graph Unit Procedures and Functions

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);



Previous: Bar procedure To the Table of Content Next: Circle procedure
Bar procedure Table of Content Circle procedure

- 4.37.2.4 -