Search Results for

    Show / Hide Table of Contents

    Class Luminance

    Inheritance
    System.Object
    BaseColorField
    Luminance
    Implements
    ILuminance
    IBaseColorField
    Inherited Members
    BaseColorField.Modulation
    BaseColorField.Offset
    Namespace: IronPPT.Models
    Assembly: IronPPT.dll
    Syntax
    public class Luminance : BaseColorField, ILuminance, IBaseColorField

    Brightness adjustment on a slide color runs through Luminance. It holds a single lightness amount, expressed as a percentage, that shifts a theme or scheme color lighter or darker without picking a brand-new color value. Reach for it when a shape, text, or fill should track a base color but sit a step brighter or dimmer than the original.

    The amount lives in the Value property, an IPercentage, so a luminance of fifty percent reads as a half-bright variation of the source color. Because Luminance defines an implicit conversion from double, a plain numeric value assigns directly where a Luminance is expected, which keeps color-tweak code short. Luminance derives from BaseColorField and sits alongside Hue and Saturation as the three color-component adjustments IronPPT exposes, so a color is tuned one axis at a time rather than recomputed by hand.

    Luminance luminance = 0.5;

    The add shape example creates the shapes whose color these adjustments tune, and the manage image how-to works with visual content on a slide.

    Constructors

    Luminance()

    Declaration
    public Luminance()

    Properties

    Value

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

    Operators

    Implicit(Double to Luminance)

    Declaration
    public static implicit operator Luminance(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type Description
    Luminance

    Implements

    ILuminance
    IBaseColorField

    Inherited members

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