IColor80

This interface contains properties and methods to set and return color and transparency values using different color formats.

 

 

Properties

 

abgrColor

Gets and sets the number which represents the color in ABGR format (0xAABBGGRR).

 

Methods

 

FromABGRColor

Sets the IColor80 object from ABGR color format (0xAABBGGRR).

FromARGBColor

Sets the IColor80 object from ARGB color format (0xAARRGGBB).

FromBGRColor

Sets the IColor80 object from BGR color format (0x00BBGGRR).

FromHTMLColor

Sets the IColor80 object from HTML color format (“#RRGGBB”).

FromRGBColor

Sets the IColor80 object from RGB color format (0x00RRGGBB).

GetAlpha

Returns the opacity or transparency of the IColor80 object.

SetAlpha

Sets the opacity or transparency of the IColor80 object.

ToABGRColor

Returns a number in ABGR color format (0xAABBGGRR).

ToARGBColor

Returns a number in ARGB color format (0xAARRGGBB).

ToBGRColor

Returns a number in BGR color format (0x00BBGGRR).

ToHTMLColor

Returns a string in HTML color format (“#RRGGBB”).

ToRGBColor

Returns a number in RGB color format (0x00RRGGBB).

abgrColor

Gets and sets the number which represents the color in ABGR format (0xAABBGGRR).

 

JavaScript

 

abgrColor

 

C#

 

uint abgrColor { get; set; }

 

C++

 

HRESULT abgrColor([out, retval] unsigned long* pVal)

HRESULT abgrColor([in] unsigned long pVal)

FromABGRColor

Sets the IColor80 object from ABGR color format (0xAABBGGRR).

 

JavaScript

 

FromABGRColor(

       abgrColor)

 

C#

 

void FromABGRColor(

       uint abgrColor)

 

C++

 

HRESULT FromABGRColor(

       unsigned long abgrColor)

Parameters

abgrColor

An integer that represents ABGR color format.

Exceptions

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

FromARGBColor

Sets the IColor80 object from ARGB color format (0xAARRGGBB).

 

JavaScript

 

FromARGBColor(

       ARGBColor)

 

C#

 

void FromARGBColor(

       uint ARGBColor)

 

C++

 

HRESULT FromARGBColor(

       unsigned long ARGBColor)

Parameters

ARGBColor

An integer that represents ARGB color format.

Exceptions

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

FromBGRColor

Sets the IColor80 object from BGR color format (0x00BBGGRR).

 

JavaScript

 

FromBGRColor(

       BGRColor)

 

C#

 

void FromBGRColor(

       uint BGRColor)

 

C++

 

HRESULT FromBGRColor(

       unsigned long BGRColor)

Return Value

BGRColor

An integer that represents BGR color format.

Exceptions

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

FromHTMLColor

Sets the IColor80 object from HTML color format (“#RRGGBB”).

 

JavaScript

 

FromHTMLColor(

       htmlColor)

 

C#

 

void FromHTMLColor(

       string htmlColor)

 

C++

 

HRESULT FromHTMLColor(

       BSTR htmlColor)

Parameters

htmlColor

A string that represents HTML color format.

Exceptions

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

FromRGBColor

Sets the IColor80 object from RGB color format (0x00RRGGBB).

 

JavaScript

 

FromRGBColor(

       RGBColor)

 

C#

 

void FromRGBColor(

       uint RGBColor)

 

C++

 

HRESULT FromRGBColor(

       unsigned long RGBColor)

Parameters

RGBColor

An integer that represents RGB color format.

Exceptions

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

GetAlpha

Returns the opacity or transparency of the IColor80 object.

 

JavaScript

 

GetAlpha()

 

C#

 

double GetAlpha()

 

C++

 

HRESULT GetAlpha(

       double* Alpha)

Return Value

Alpha

The opacity or transparency value (0.0 – 1.0) of the IColor80 object.

Exceptions

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

SetAlpha

Sets the opacity or transparency of the IColor80 object.

 

JavaScript

 

SetAlpha(double Alpha)

 

C#

 

void SetAlpha(

       double Alpha)

 

C++

 

HRESULT SetAlpha(

       double Alpha)

Parameters

Alpha

The opacity or transparency value (0.0 – 1.0) of the IColor80 object.

Exceptions

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

ToABGRColor

Returns the color as an integer in ABGR format (0xAABBGGRR).

 

JavaScript

 

ToABGRColor()

 

C#

 

uint ToABGRColor()

 

C++

 

HRESULT ToABGRColor(

       unsigned long* abgrColor)

Return Value

abgrColor

The color as an integer in ABGR format.

Exceptions

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

ToARGBColor

Returns the color as an integer in ARGB color format (0xAARRGGBB).

 

JavaScript

 

ToARGBColor()

 

C#

 

uint ToARGBColor()

 

C++

 

HRESULT ToARGBColor(

       unsigned long* ARGBColor)

Return Value

ARGBColor

The color as an integer in ARGB color format.

Exceptions

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

ToBGRColor

Returns the color as an integer in BGR format (0x00BBGGRR).

 

JavaScript

 

ToBGRColor()

 

C#

 

uint ToBGRColor()

 

C++

 

HRESULT ToBGRColor(

       unsigned long* BGRColor)

Return Value

BGRColor

The color as an integer in BGR color format.

ToHTMLColor

Returns the color as a string in HTML color format (#RRGGBB).

 

JavaScript

 

ToHTMLColor()

 

C#

 

string ToHTMLColor()

 

C++

 

HRESULT ToHTMLColor(

       BSTR* htmlColor)

Return Value

htmlColor

The color in HTML #RRGGBB string format.

Exceptions

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

ToRGBColor

Returns the color as an integer in RGB color format (0x00RRGGBB).

 

JavaScript

 

ToRGBColor()

 

C#

 

uint ToRGBColor()

 

C++

 

HRESULT ToRGBColor(

       unsigned long* RGBColor)

Return Value

RGBColor

The color as an integer in RGB color format.

Exceptions

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