ArcObjects Library Reference (Display)  

IColor Interface

Provides access to members that control the basic color interface.

Product Availability

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

Description

IColor is a generic interface that are implemented by all the other color CoClasses. IColor is also where transparency is managed. The other color interfaces derived from IColor interface are: IRgbColor, ICmykColor, IHsvColor, IHlsColor, and IGrayColor. You can also convert any of the color interfaces to OLE color objects by using the RGB method.

 

Members

Description
Read/write property CMYK The CMYK value of color.
Method GetCIELAB The CIELAB value of color.
Read/write property NullColor Indicates whether this color is null.
Read/write property RGB The RGB value of color.
Method SetCIELAB The CIELAB value of color.
Read/write property Transparency The Alpha Blending value. (0 for transparent, 255 for opaque).
Read/write property UseWindowsDithering Indicates if colors should be dithered to simulate colors that aren't supported by the display. This only applies on displays that have 256 or fewer colors.

CoClasses that implement IColor

CoClasses and Classes Description
CmykColor A color in the CMYK(Cyan Magenta Yellow, Black) color system.
GrayColor A color in the grayscale color system.
HlsColor A color in the HLS(Hue, Luminance, Saturation) color system.
HsvColor A color in the HSV (Hue, Saturation, Value) color system.
RgbColor A color in the RGB(Red Green Blue) color system.

See Also

ICmykColor Interface | ICieLabConversion Interface | IEnumColors Interface | IColor Interface

.NET Snippets

Create Dynamic Marker Glyph from Image | Export MOLE Cached Graphic To Bitmap | Add Graphics Layer to Globe | Create Marker Symbol From MOLE Cached Graphic | Draw Polygon | Draw Polyline Using Input Geometry

.NET Samples

3D multipatch examples (Code Files: ColorUtilities DrawUtilities ElementUtilities GraphicsLayer3DUtilities) | Dynamic logo (Code Files: DynamicLogo) | Dynamic biking (Code Files: DynamicBikingCmd) | Visualizing the camera path while animating (Code Files: VisualizeCameraPath) | Dynamic display layer (Code Files: MyDynamicLayerClass) | Use an AlgorithmicColorRamp to color a ClassBreaksRenderer (Code Files: AlgorithmicColorRamp frmAlgorithmicColorRamp) | Create a custom default raster catalog renderer (Code Files: CustomRasterCatalogRenderer_VBNET) | Extent view (Code Files: clsExtentView) | Dynamic display—tracking dynamic object (Code Files: TrackObject) | GraphicTracker with the map (Code Files: GTMapForm) | Effects in the GlobeControl (Code Files: Effects) | Creating a toolbar of globe tools (Code Files: ColorSelection) | Create a custom default raster renderer (Code Files: RasterRendererMaker_1bit_TIFF_VBNET) | Multivariate renderer (Code Files: MultivariateRenderer) | Triangle graphic element (Code Files: TriangleElementClass TriangleElementTool)

.NET Related Topics

Creating custom symbols | Creating map grid labels | DisplayUI | How to create a raster stretch renderer | How to create map grids | How to draw a polygon on the screen | How to draw a polyline on the screen | How to draw a rectangle on the screen | Setting default Object properties to IColor is problematic