VintaSoft Imaging .NET SDK 15.2: Документация для .NET разработчика
Vintasoft.Imaging.ColorManagement.Icc Namespace / IccProfile Class
Члены типа Объект Синтаксис Example Иерархия Требования Смотрите также
В этом разделе
Класс IccProfile
В этом разделе
Обеспечивает доступ к профилю ICC.
Объектная модель
IccProfile
Синтаксис
'Declaration

Public NotInheritable Class IccProfile

public sealed class IccProfile

Пример

Вот пример, показывающий, как открыть профиль ICC из файла и получить преобразование цвета из цветового пространства устройства в PCS.


''' <summary>
''' Returns a color transform, which transforms colors from the device to PCS color space,
''' from specified ICC profile.
''' </summary>
Public Shared Function GetDeviceToPcsTransform(iccProfileFilename As String) As Vintasoft.Imaging.ColorManagement.ColorTransform
    Using profile As New Vintasoft.Imaging.ColorManagement.Icc.IccProfile(iccProfileFilename)
        Return profile.GetDeviceToPcsTransform()
    End Using
End Function


/// <summary>
/// Returns a color transform, which transforms colors from the device to PCS color space,
/// from specified ICC profile.
/// </summary>
public static Vintasoft.Imaging.ColorManagement.ColorTransform GetDeviceToPcsTransform(string iccProfileFilename)
{
    using (Vintasoft.Imaging.ColorManagement.Icc.IccProfile profile = 
        new Vintasoft.Imaging.ColorManagement.Icc.IccProfile(iccProfileFilename))
    {
        return profile.GetDeviceToPcsTransform();
    }
}

Иерархия наследования

System.Object
   Vintasoft.Imaging.ColorManagement.Icc.IccProfile

Требования

Целевые платформы: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

Смотрите также