Skip to main content

Class ColorManagement

Namespace: Aurigma.DesignAtoms.ColorManagement
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class ColorManagement : IColorManagement, IDisposable

Inheritance: System.Object -> ColorManagement

Implements

Inherited Members

  • System.Object.ToString
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone

Constructors

ColorManagement

public ColorManagement(IConfiguration configuration, IColorProfileManager colorProfileManager)

Properties

Srgb

public ColorProfile Srgb { get; }

DefaultRgbProfile

public ColorProfile DefaultRgbProfile { get; }

DefaultCmykProfile

public ColorProfile DefaultCmykProfile { get; }

DefaultGrayscaleProfile

public ColorProfile DefaultGrayscaleProfile { get; }

DefaultSourceColorProfiles

public ISourceColorProfiles DefaultSourceColorProfiles { get; }

ColorProfileManager

public IColorProfileManager ColorProfileManager { get; }

DefaultPreviewColorSettings

public IRenderingColorSettings DefaultPreviewColorSettings { get; }

Methods

CompareProfiles

public bool CompareProfiles(ColorProfile cp1, ColorProfile cp2)
Parameters
TypeNameDescription
Aurigma.GraphicsMill.ColorProfilecp1
Aurigma.GraphicsMill.ColorProfilecp2
Returns

System.Boolean

GetPixelFormat

public PixelFormat GetPixelFormat(ColorSpace colorSpace, bool withAlpha = true)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.Model.Color.ColorSpacecolorSpace
System.BooleanwithAlpha
Returns

Aurigma.DesignAtoms.Model.Color.PixelFormat

GetDefaultProfile

public ColorProfile GetDefaultProfile(ColorSpace colorSpace)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.Model.Color.ColorSpacecolorSpace
Returns

Aurigma.GraphicsMill.ColorProfile

GetProfile

public ColorProfile GetProfile(Color color, ISourceColorProfiles sourceColorProfiles = null)
Parameters
TypeNameDescription
Aurigma.GraphicsMill.Colorcolor
Aurigma.DesignAtoms.ColorManagement.ISourceColorProfilessourceColorProfiles
Returns

Aurigma.GraphicsMill.ColorProfile

GetProfileOrDefault

public ColorProfile GetProfileOrDefault(ColorSpace colorSpace, ISourceColorProfiles sourceColorProfiles = null)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.Model.Color.ColorSpacecolorSpace
Aurigma.DesignAtoms.ColorManagement.ISourceColorProfilessourceColorProfiles
Returns

Aurigma.GraphicsMill.ColorProfile

GetColorConverter

public IColorConverter GetColorConverter(PixelFormat sourcePixelFormat, ColorProfile sourceColorProfile, IRenderingColorSettings colorSettings)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.Model.Color.PixelFormatsourcePixelFormat
Aurigma.GraphicsMill.ColorProfilesourceColorProfile
Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettingscolorSettings
Returns

Aurigma.DesignAtoms.ColorManagement.IColorConverter

GetColorConverter

public IColorConverter GetColorConverter(PixelFormat sourcePixelFormat, ColorProfile sourceColorProfile, IRenderingColorSettings colorSettings, PixelFormat? destinationPixelFormat, ColorProfile destinationColorProfile = null)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.Model.Color.PixelFormatsourcePixelFormat
Aurigma.GraphicsMill.ColorProfilesourceColorProfile
Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettingscolorSettings
System.Nullable<Aurigma.DesignAtoms.Model.Color.PixelFormat>destinationPixelFormat
Aurigma.GraphicsMill.ColorProfiledestinationColorProfile
Returns

Aurigma.DesignAtoms.ColorManagement.IColorConverter

GetBlackAndWhiteColorConverter

public IColorConverter GetBlackAndWhiteColorConverter(PixelFormat sourcePixelFormat, ISourceColorProfiles sourceColorProfiles = null)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.Model.Color.PixelFormatsourcePixelFormat
Aurigma.DesignAtoms.ColorManagement.ISourceColorProfilessourceColorProfiles
Returns

Aurigma.DesignAtoms.ColorManagement.IColorConverter

ConvertColor

public Color ConvertColor(Color color, IRenderingColorSettings colorSettings, PixelFormat? destinationPixelFormat, bool renderOnPdf = false)
Parameters
TypeNameDescription
Aurigma.GraphicsMill.Colorcolor
Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettingscolorSettings
System.Nullable<Aurigma.DesignAtoms.Model.Color.PixelFormat>destinationPixelFormat
System.BooleanrenderOnPdf
Returns

Aurigma.GraphicsMill.Color

SaveColorProfileAsync

public Task SaveColorProfileAsync(ColorProfile colorProfile)
Parameters
TypeNameDescription
Aurigma.GraphicsMill.ColorProfilecolorProfile
Returns

System.Threading.Tasks.Task

LoadColorProfileAsync

public Task<ColorProfile> LoadColorProfileAsync(string description)
Parameters
TypeNameDescription
System.Stringdescription
Returns

System.Threading.Tasks.Task<Aurigma.GraphicsMill.ColorProfile>

LoadColorProfileOrDefaultAsync

public Task<ColorProfile> LoadColorProfileOrDefaultAsync(string description, ColorSpace colorSpace)
Parameters
TypeNameDescription
System.Stringdescription
Aurigma.DesignAtoms.Model.Color.ColorSpacecolorSpace
Returns

System.Threading.Tasks.Task<Aurigma.GraphicsMill.ColorProfile>

ContainsColorProfileAsync

public Task<bool> ContainsColorProfileAsync(string description)
Parameters
TypeNameDescription
System.Stringdescription
Returns

System.Threading.Tasks.Task<System.Boolean>

GetTransparentColor

public Color GetTransparentColor(PixelFormat pixelFormat)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.Model.Color.PixelFormatpixelFormat
Returns

Aurigma.GraphicsMill.Color

GetTransparentColor

public Color GetTransparentColor(ColorSpace colorSpace)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.Model.Color.ColorSpacecolorSpace
Returns

Aurigma.GraphicsMill.Color

GetBlackColor

public Color GetBlackColor(ColorSpace colorSpace)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.Model.Color.ColorSpacecolorSpace
Returns

Aurigma.GraphicsMill.Color

GetWhiteColor

public Color GetWhiteColor(ColorSpace colorSpace)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.Model.Color.ColorSpacecolorSpace
Returns

Aurigma.GraphicsMill.Color

GetAlpha

public byte GetAlpha(Color color)
Parameters
TypeNameDescription
Aurigma.GraphicsMill.Colorcolor
Returns

System.Byte

Dispose

public void Dispose()
Was this page helpful?