From ece11eb5c73cf57e2d9bcb9cf1de132abcbb0818 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sat, 17 Dec 2022 13:20:05 +1000 Subject: [PATCH] Create ColorProfileHandling.cs --- .../Formats/ColorProfileHandling.cs | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/ImageSharp/Formats/ColorProfileHandling.cs diff --git a/src/ImageSharp/Formats/ColorProfileHandling.cs b/src/ImageSharp/Formats/ColorProfileHandling.cs new file mode 100644 index 000000000..de1a765a9 --- /dev/null +++ b/src/ImageSharp/Formats/ColorProfileHandling.cs @@ -0,0 +1,21 @@ +// Copyright (c) Six Labors. +// Licensed under the Six Labors Split License. + +namespace SixLabors.ImageSharp.Formats; + +/// +/// Provides enumeration of methods that control how ICC profiles are handled during decode. +/// +public enum ColorProfileHandling +{ + /// + /// Leaves any embedded ICC color profiles intact. + /// + Preserve, + + /// + /// Transforms the pixels of the image based on the conversion of any embedded ICC color profiles to sRGB. + /// The original profile is then removed. + /// + Convert +}