VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.ColorManagement Namespace / ColorTransformsOptimizer Class / GetOptimizedTransform Methods / GetOptimizedTransform(ColorTransform,Boolean) Method
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
    GetOptimizedTransform(ColorTransform,Boolean) Method (ColorTransformsOptimizer)
    In This Topic
    Returns an optimized color transform that is identical to the specified color transform with specified thread-safety.
    Syntax
    'Declaration
    
    Public Overloads Shared Function GetOptimizedTransform( _
    ByVal transform
    A ColorTransform to optimize.
    As ColorTransform, _
    ByVal threadSafeColorTransform
    A value indicating whether the result color transform should be thread-safe.
    As Boolean _
    ) As ColorTransform
    public static ColorTransform GetOptimizedTransform(
    ColorTransform transform,
    bool threadSafeColorTransform
    )
    public: static ColorTransform* GetOptimizedTransform(
    ColorTransform* transform,
    bool threadSafeColorTransform
    )
    public:
    static ColorTransform^ GetOptimizedTransform(
    ColorTransform^ transform,
    bool threadSafeColorTransform
    )

    Parameters

    transform
    A ColorTransform to optimize.
    threadSafeColorTransform
    A value indicating whether the result color transform should be thread-safe.

    Return Value

    A ColorTransform that is identical to the original color transform, or null if transform is identity transform.
    Exceptions
    ExceptionDescription
    Thrown if transform is null.
    Thrown if threadSafeColorTransform is true and transform is not thread-safe.
    Remarks

    Method will return thread-safe transform if value of the threadSafeColorTransform parameter is set to true. Method will return not thread-safe transform if value of the threadSafeColorTransform parameter is set to false.
    In most cases the not thread-safe transform is faster than thread-safe transform and not thread-safe transform should be used if thread safety is not necessary.

    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