Class ColorManagement
Inheritance
System.Object
ColorManagement
Implements
System.IDisposable
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()
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class ColorManagement : IColorManagement, IDisposable
Constructors
ColorManagement(IConfiguration, IColorProfileManager)
Declaration
public ColorManagement(IConfiguration configuration, IColorProfileManager colorProfileManager)
Parameters
Properties
ColorProfileManager
Declaration
public IColorProfileManager ColorProfileManager { get; }
Property Value
DefaultCmykProfile
Declaration
public ColorProfile DefaultCmykProfile { get; }
Property Value
| Type |
Description |
| Aurigma.GraphicsMill.ColorProfile |
|
DefaultGrayscaleProfile
Declaration
public ColorProfile DefaultGrayscaleProfile { get; }
Property Value
| Type |
Description |
| Aurigma.GraphicsMill.ColorProfile |
|
DefaultPreviewColorSettings
Declaration
public IRenderingColorSettings DefaultPreviewColorSettings { get; }
Property Value
DefaultRgbProfile
Declaration
public ColorProfile DefaultRgbProfile { get; }
Property Value
| Type |
Description |
| Aurigma.GraphicsMill.ColorProfile |
|
DefaultSourceColorProfiles
Declaration
public ISourceColorProfiles DefaultSourceColorProfiles { get; }
Property Value
Srgb
Declaration
public ColorProfile Srgb { get; }
Property Value
| Type |
Description |
| Aurigma.GraphicsMill.ColorProfile |
|
Methods
CompareProfiles(ColorProfile, ColorProfile)
Declaration
public bool CompareProfiles(ColorProfile cp1, ColorProfile cp2)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.ColorProfile |
cp1 |
|
| Aurigma.GraphicsMill.ColorProfile |
cp2 |
|
Returns
| Type |
Description |
| System.Boolean |
|
ContainsColorProfileAsync(String)
Declaration
public Task<bool> ContainsColorProfileAsync(string description)
Parameters
| Type |
Name |
Description |
| System.String |
description |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.Boolean> |
|
Declaration
public Color ConvertColor(Color color, IRenderingColorSettings colorSettings, PixelFormat? destinationPixelFormat, bool renderOnPdf = false)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.Color |
color |
|
| IRenderingColorSettings |
colorSettings |
|
| System.Nullable<PixelFormat> |
destinationPixelFormat |
|
| System.Boolean |
renderOnPdf |
|
Returns
| Type |
Description |
| Aurigma.GraphicsMill.Color |
|
Dispose()
Declaration
GetAlpha(Color)
Declaration
public byte GetAlpha(Color color)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.Color |
color |
|
Returns
| Type |
Description |
| System.Byte |
|
Declaration
public IColorConverter GetBlackAndWhiteColorConverter(PixelFormat sourcePixelFormat, ISourceColorProfiles sourceColorProfiles = null)
Parameters
Returns
GetBlackColor(ColorSpace)
Declaration
public Color GetBlackColor(ColorSpace colorSpace)
Parameters
Returns
| Type |
Description |
| Aurigma.GraphicsMill.Color |
|
Declaration
public IColorConverter GetColorConverter(PixelFormat sourcePixelFormat, ColorProfile sourceColorProfile, IRenderingColorSettings colorSettings)
Parameters
Returns
Declaration
public IColorConverter GetColorConverter(PixelFormat sourcePixelFormat, ColorProfile sourceColorProfile, IRenderingColorSettings colorSettings, PixelFormat? destinationPixelFormat, ColorProfile destinationColorProfile = null)
Parameters
| Type |
Name |
Description |
| PixelFormat |
sourcePixelFormat |
|
| Aurigma.GraphicsMill.ColorProfile |
sourceColorProfile |
|
| IRenderingColorSettings |
colorSettings |
|
| System.Nullable<PixelFormat> |
destinationPixelFormat |
|
| Aurigma.GraphicsMill.ColorProfile |
destinationColorProfile |
|
Returns
GetDefaultProfile(ColorSpace)
Declaration
public ColorProfile GetDefaultProfile(ColorSpace colorSpace)
Parameters
Returns
| Type |
Description |
| Aurigma.GraphicsMill.ColorProfile |
|
Declaration
public PixelFormat GetPixelFormat(ColorSpace colorSpace, bool withAlpha = true)
Parameters
| Type |
Name |
Description |
| ColorSpace |
colorSpace |
|
| System.Boolean |
withAlpha |
|
Returns
GetProfile(Color, ISourceColorProfiles)
Declaration
public ColorProfile GetProfile(Color color, ISourceColorProfiles sourceColorProfiles = null)
Parameters
Returns
| Type |
Description |
| Aurigma.GraphicsMill.ColorProfile |
|
GetProfileOrDefault(ColorSpace, ISourceColorProfiles)
Declaration
public ColorProfile GetProfileOrDefault(ColorSpace colorSpace, ISourceColorProfiles sourceColorProfiles = null)
Parameters
Returns
| Type |
Description |
| Aurigma.GraphicsMill.ColorProfile |
|
GetTransparentColor(ColorSpace)
Declaration
public Color GetTransparentColor(ColorSpace colorSpace)
Parameters
Returns
| Type |
Description |
| Aurigma.GraphicsMill.Color |
|
Declaration
public Color GetTransparentColor(PixelFormat pixelFormat)
Parameters
Returns
| Type |
Description |
| Aurigma.GraphicsMill.Color |
|
GetWhiteColor(ColorSpace)
Declaration
public Color GetWhiteColor(ColorSpace colorSpace)
Parameters
Returns
| Type |
Description |
| Aurigma.GraphicsMill.Color |
|
LoadColorProfileAsync(String)
Declaration
public Task<ColorProfile> LoadColorProfileAsync(string description)
Parameters
| Type |
Name |
Description |
| System.String |
description |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<Aurigma.GraphicsMill.ColorProfile> |
|
LoadColorProfileOrDefaultAsync(String, ColorSpace)
Declaration
public Task<ColorProfile> LoadColorProfileOrDefaultAsync(string description, ColorSpace colorSpace)
Parameters
| Type |
Name |
Description |
| System.String |
description |
|
| ColorSpace |
colorSpace |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<Aurigma.GraphicsMill.ColorProfile> |
|
SaveColorProfileAsync(ColorProfile)
Declaration
public Task SaveColorProfileAsync(ColorProfile colorProfile)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.ColorProfile |
colorProfile |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Implements
System.IDisposable