VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.ColorManagement.Icc Namespace / IccProfile Class
Members Object Syntax Example Hierarchy Requirements SeeAlso
In This Topic
    IccProfile Class
    In This Topic
    Provides access to ICC profile.
    Object Model
    IccProfile
    Syntax
    'Declaration
    
    Public NotInheritable Class IccProfile
    
    
    public sealed class IccProfile
    
    
    public __gc __sealed class IccProfile
    
    
    public ref class IccProfile sealed
    
    
    Example

    Here is an example that shows how to open an ICC profile from file and retrieve a color transform from the device color space to 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();
        }
    }
    
    

    Inheritance Hierarchy

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

    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also