-
-
Notifications
You must be signed in to change notification settings - Fork 853
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2108 from SixLabors/bp/bmp-icc
Preserve color profile when encoding bitmaps
- Loading branch information
Showing
11 changed files
with
388 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright (c) Six Labors. | ||
// Licensed under the Apache License, Version 2.0. | ||
|
||
// ReSharper disable InconsistentNaming | ||
namespace SixLabors.ImageSharp.Formats.Bmp | ||
{ | ||
/// <summary> | ||
/// Enum for the different color spaces. | ||
/// </summary> | ||
internal enum BmpColorSpace | ||
{ | ||
/// <summary> | ||
/// This value implies that endpoints and gamma values are given in the appropriate fields. | ||
/// </summary> | ||
LCS_CALIBRATED_RGB = 0, | ||
|
||
/// <summary> | ||
/// The Windows default color space ('Win '). | ||
/// </summary> | ||
LCS_WINDOWS_COLOR_SPACE = 1466527264, | ||
|
||
/// <summary> | ||
/// Specifies that the bitmap is in sRGB color space ('sRGB'). | ||
/// </summary> | ||
LCS_sRGB = 1934772034, | ||
|
||
/// <summary> | ||
/// This value indicates that bV5ProfileData points to the file name of the profile to use (gamma and endpoints values are ignored). | ||
/// </summary> | ||
PROFILE_LINKED = 1279872587, | ||
|
||
/// <summary> | ||
/// This value indicates that bV5ProfileData points to a memory buffer that contains the profile to be used (gamma and endpoints values are ignored). | ||
/// </summary> | ||
PROFILE_EMBEDDED = 1296188740 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.