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