DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Expand ModelsModels
Expand DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Expand General GeometryGeneral Geometry
Collapse ModelModel
Expand ViewView
Expand General ComputingGeneral Computing
Expand ViewsViews
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation LinksHome Page > API Reference > Model > Entities > Appearence > IColor Go to DGKC docs Search Documentation


IColor Interface

Get
Set

The IColor interface gives access to components of the color.

See also Interface List


HRESULT Get( float* red, float* green, float* blue, float* alpha)

Parameters

red, green, blue, alpha - [out] the returned components of the color

Remarks:

The methods returns components of the color. All values are in range 0 to 1.0. 1.0 value of alpha corresponds to totally opaque color


HRESULT Set( float red, float green, float blue, float alpha)

Parameters

red, green, blue, alpha - [in] new components of the color

Returns

S_OK in case of success.

DISP_E_PARAMNOTOPTIONAL if any of the parameters is out of the valid range.

Remarks:

All values must be in range 0 to 1.0. 1.0 value of alpha corresponds to totally opaque color.