ArcObjects Library Reference (Display)  

IHlsColor Interface

Provides access to members that control the HLS color model.

Product Availability

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

Description

IHlsColor maintains information about a Color by using the HLS (Hue, Saturation, Lightness) color model. This color model is similar to the HSV color model, however, HLS colors use Lightness instead of Value. The Hue property may be set to a number between 0 and 360, indicating in degrees where the hue lies on the color wheel. The Saturation property is a number between 0 and 100 indicating the saturation, or purity, of the color, and the Lightness property is a number between 0 and 100 indicating the lightness, or paleness, of a color. Regardless of other properties, a lightness of 0 is always black, and a lightness of 100 is always white. All of the properties have a default of 0; therefore, the default HLSColor is black.

Members

Description
Read/write property CMYK The CMYK value of color.
Method GetCIELAB The CIELAB value of color.
Read/write property Hue The hue component of an IHlsColor (0-360).
Read/write property Lightness The lightness component of an IHlsColor (0-100).
Read/write property NullColor Indicates whether this color is null.
Read/write property RGB The RGB value of color.
Read/write property Saturation The saturation component of an HlslColor (0-100).
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.

Inherited Interfaces

Interfaces Description
IColor Provides access to members that control the basic color interface.

CoClasses that implement IHlsColor

CoClasses and Classes Description
HlsColor A color in the HLS(Hue, Luminance, Saturation) color system.

See Also

IRgbColor Interface | IGrayColor Interface | IHsvColor Interface | IHlsColor Interface

.NET Related Topics

How to make different types of colors and color ramps |