CreateColor

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

 

JavaScript

 

CreateColor(

       Red,

       Green,

       Blue,

       Alpha )

 

C#

 

IColor66 CreateColor(

       [int   Red = 255],

       [int   Green = 255],

       [int   Blue = 255],

       [int   Alpha = 255])

 

C++

 

HRESULT CreateColor(

        long  Red,

        long  Green,

        long  Blue,

        long  Alpha,

        IColor66 **  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 IColor66representing the color created.

Exceptions

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