Search Results for

    Show / Hide Table of Contents

    Class ColorProfileMode

    Defines the modes that control ICC Color Profile handling.

    Inheritance
    System.Object
    ColorProfileMode
    Namespace: PhotoSauce.MagicScaler
    Assembly: PhotoSauce.MagicScaler.dll
    Syntax
    public sealed class ColorProfileMode : Enum

    Fields

    ConvertToSrgb

    Convert the input image to the sRGB color space during processing. Output an untagged sRGB image.

    Declaration
    public const ColorProfileMode ConvertToSrgb
    Field Value
    Type Description
    ColorProfileMode

    Ignore

    Ignore any embedded profiles and treat the image as sRGB data. Do not tag the output image.

    Declaration
    public const ColorProfileMode Ignore
    Field Value
    Type Description
    ColorProfileMode

    Normalize

    Convert the input image to a well-known RGB color space during processing. A minimal compatible color profile will be embedded unless the output image is in the the sRGB color space.

    Declaration
    public const ColorProfileMode Normalize
    Field Value
    Type Description
    ColorProfileMode
    Remarks

    Possible output color spaces are sRGB, Adobe RGB (1998), or Display P3. An output color space other than sRGB will be used only if the input image is in an alternate color space and the output codec supports embedding an ICC profile.

    NormalizeAndEmbed

    Convert the input image to a well-known RGB color space during processing. A minimal compatible color profile will be embedded for the output color space, including sRGB.

    Declaration
    public const ColorProfileMode NormalizeAndEmbed
    Field Value
    Type Description
    ColorProfileMode
    Remarks

    Possible output color spaces are sRGB, Adobe RGB (1998), or Display P3. An output color space other than sRGB will be used only if the input image is in an alternate color space and the output codec supports embedding an ICC profile.

    Preserve

    Preserve the input image color space during processing and embed the source image's ICC profile in the output image. CMYK images will be converted to Adobe RGB.

    Declaration
    public const ColorProfileMode Preserve
    Field Value
    Type Description
    ColorProfileMode
    Remarks

    Be aware that the embedded profile may be very large -- in the case of thumbnails, often larger than the thumbnail image itself. If the output format does not support embedded profiles, no color space conversion will be performed, and the profile will be discarded.

    value__

    Declaration
    public byte value__
    Field Value
    Type Description
    System.Byte
    In This Article
    Back to top Copyright © 2022 Clinton Ingram
    Generated with DocFX