Admin Production ni-theme
Current Publication

Get3dBorderColors

LabWindows/CVI

Get3dBorderColors

int Get3dBorderColors (int baseColor, int *highlightColor, int *lightColor, int *shadowColor, int *darkShadowColor);

Purpose

Takes an RGB value for the base color of an object and returns the RGB values for colors that you can use to make the object look three-dimensional.

The colors that Get3dBorderColors returns are similar to the colors that Windows uses to draw three-dimensional objects.

Parameters

Input
Name Type Description
baseColor int RGB value for the color of an object.
Output
Name Type Description
highlightColor int The RGB value for the highlight color.

Use this color to indicate the edges of the object that are in the most direct light.

You can pass NULL.
lightColor int The RGB value for the light color.

Use this color to indicate the transition between the highlight color and the base color of the object.

Currently, lightColor is always the same as baseColor.

You can pass NULL.
shadowColor int The RGB value for the shadow color.

Use this color to indicate the edges of the object that are angled away from the light.

You can pass NULL.
darkShadowColor int The RGB value for the dark shadow color.

Use this color to indicate the edges of the object that are angled farthest away from the light.

Currently, darkShadowColor is always black.

You can pass NULL.

Return Value

Name Type Description
status int Return value indicating whether the function was successful. A negative number indicates that an error occurred.

Additional Information

Library: User Interface Library

Include file: userint.h

LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later