ShadowXDepth property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int ShadowXDepth

Delphi Syntax

ShadowXDepth: Integer

Overview

Refer to Drawing Three-Dimensional Shapes and Text.

Remarks

(Persistent property, available at design time) Specifies the X offset of a drop shadow that is applied to a three-dimensional shape or text object.

To have no drop shadow, set the ShadowXDepth and ShadowYDepth properties to 0.

Whether you draw to the screen or to the bitmap, drawing objects are always positioned in the Main Control's client area. If the target is the bitmap, LEADTOOLS translates the values to bitmap coordinates.

For text objects, drop shadows are available only for the following TextStyle values:

etsDropShadow
etsBlockShadow
etsOutLineBlock

See Also

Elements:

DrawShape method, DrawTextStr method

Topics:

Raster Images: Drawing on a Bitmap

 

Working with the Control: Client Area Usage