Copyright © 2003-2005 MultiMedia Soft 
Return to index  
 
SurfaceColor.Render3DType property 
 
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)  
ColorRenderType.Best3D
1
Best 3D rendering: Uses another coloring algorithm to avoid the problem described above; the result is generally a darker button. 
ColorRenderType.LinearMatch
2
Linear color match: uses another coloring algorithm. 
ColorRenderType.Hyper3D
3
Hyper 3D rendering: uses an extended 3D gradient algorithm. 
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)  
 
 
See also
SurfaceColor class. 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Copyright © 2003-2005 MultiMedia Soft 
Return to index