Copyright © 2003-2024 MultiMedia Soft

SurfaceColor.Render3DType property

Previous pageReturn to chapter overviewNext page

Type

[Visual Basic]

Overrides Public Property Render3DType As Ctl3d.ColorRenderType

 

[C#]

public override Ctl3d.ColorRenderType Render3DType {get; set;}

 

[C++]

public: __property Ctl3d.ColorRenderType get_Render3DType();

public: __property void set_Render3DType(Ctl3d.ColorRenderType);

 

 

Remarks

The 3D color rendering of the button surface.

Supported values are the following:

Supported values are the following:

Mnemonic constant

Value

Meaning

ColorRenderType.BestMatch

0

Best color match: Uses exactly the color set by the color parameter to make the 3D rendering. With some colors (for example YELLOW RGB (255, 255, 0)) the 3D rendering is very bad due to our eye's perception of the color itself: in this cases it is convenient to use Best 3D rendering.

In all of the the samples below the SurfaceColor.BackColor property is set to Orange RGB (255, 128, 0)

3dcm_i000103

ColorRenderType.Best3D

1

Best 3D rendering: Uses another coloring algorithm to avoid the problem described above; the result is generally a darker button.

3dcm_i000104

ColorRenderType.LinearMatch

2

Linear color match: uses another coloring algorithm.

3dcm_i000105

ColorRenderType.Hyper3D

3

Hyper 3D rendering: uses an extended 3D gradient algorithm.

3dcm_i000106

ColorRenderType.TwoColors

4

Bicolor: uses a gradient algorithm that makes use of two colors.

In the the sample below the SurfaceColor.BackColor property is set to Orange RGB (255, 128, 0) and the SurfaceColor.BackColor2 property is set to Blue RGB (0, 0, 255)

3dcm_i000107

 

 

See also

SurfaceColor class.

ColorSurfaceNormal, ColorSurfaceMO, ColorSurfaceInternal, ColorSurfaceFocus, ColorSurfaceDisabled, ColorSurfacePressed properties.

How to change the button colors section.