CreateColor

Creates a custom color by defining the red, green, blue and alpha values.

 

JavaScript

 

CreateColor(

       Red,

       Green,

       Blue,

       Alpha )

 

C#

 

IColor80 CreateColor(

       int    Red = 255,

       int    Green = 255,

       int    Blue = 255,

       int    Alpha = 255)

 

C++

 

HRESULT CreateColor(

       long   Red,

       long   Green,

       long   Blue,

       long   Alpha,

       IColor80 **  pVal )

Parameters

Red

The red component of the RGB color.

Green

The green component of the RGB color.

Blue

The blue component of the RGB color.

Alpha

The alpha component.

Return Value

pVal

An IColor80 representing the color created.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.