Search Results for

    Show / Hide Table of Contents

    Interface ILuminance

    Inherited Members
    IBaseColorField.Modulation
    IBaseColorField.Offset
    Namespace: IronPPT.Interfaces
    Assembly: IronPPT.dll
    Syntax
    public interface ILuminance : IBaseColorField

    Lightening or darkening a presentation color in C# runs through ILuminance. The contract represents the luminance adjustment on a color field, the brightness change that makes a color lighter or darker without altering its hue or intensity. A developer reaches for it while building tints and shades of a base color, for instance generating a lighter variant of a theme color for a hover state or a darker one for a border.

    A luminance adjustment is obtained from the color it modifies rather than constructed alone, so an ILuminance reference comes from a color and is then set. Its own member is Value, an IPercentage giving how much brightness to apply. Because the contract extends IBaseColorField, it also carries the inherited Modulation and Offset percentages shared by every color-field adjustment. The concrete implementor in IronPPT is the Luminance class, sitting beside Hue and Saturation as the three components of a color tweak, so most code sets brightness through Luminance directly.

    luminance.Value = percentage;

    The add shape example applies a styled fill, and the paragraph style example shows related color styling.

    Properties

    Value

    Declaration
    IPercentage Value { get; set; }
    Property Value
    Type Description
    IPercentage

    Inherited members

    Modulation
    Offset
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet