com.esri.arcgis.display
Interface IGrayColor

All Superinterfaces:
IColor, Serializable
All Known Implementing Classes:
GrayColor

public interface IGrayColor
extends IColor, Serializable

Provides access to members that control the gray color.

Description

IGrayColor maintains information about a Color by using the level of grayness. The Level property can be set to a value representing a pure shade of gray, from 0, which is black, to 255, which is white.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

See Also:
IHsvColor, IHlsColor

Method Summary
 int getLevel()
          The level of grayness of an IGrayColor (0 = White - 255 = Black).
 void setLevel(int outLevel)
          The level of grayness of an IGrayColor (0 = White - 255 = Black).
 
Methods inherited from interface com.esri.arcgis.display.IColor
getCIELAB, getCMYK, getRGB, getTransparency, isNullColor, isUseWindowsDithering, setCIELAB, setCMYK, setNullColor, setRGB, setTransparency, setUseWindowsDithering
 

Method Detail

setLevel

void setLevel(int outLevel)
              throws IOException,
                     AutomationException
The level of grayness of an IGrayColor (0 = White - 255 = Black).

Description

Level is the amount of gray in an IGrayColor. 0 is white, 255 is black.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
outLevel - The outLevel (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLevel

int getLevel()
             throws IOException,
                    AutomationException
The level of grayness of an IGrayColor (0 = White - 255 = Black).

Description

Level is the amount of gray in an IGrayColor. 0 is white, 255 is black.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Returns:
The outLevel
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.