SKColorSpaceTransferFn Struct

Definition

Represents the coefficients for a common transfer function equation.

public struct SKColorSpaceTransferFn
public struct SKColorSpaceTransferFn : IEquatable<SkiaSharp.SKColorSpaceTransferFn>
Inheritance
SKColorSpaceTransferFn
Implements

Remarks

The coefficients are specified as a transformation from a curved space to linear.

LinearVal = C*InputVal + F; (for 0.0f <= InputVal < D)

LinearVal = (A*InputVal + B)^G + E; (for D <= InputVal <= 1.0f)

Function is undefined if InputVal is not in [ 0.0f, 1.0f ].

Resulting LinearVals must be in [ 0.0f, 1.0f ].

Function must be positive and increasing.

Constructors

SKColorSpaceTransferFn(Single, Single, Single, Single, Single, Single, Single)

Creates a new instance of SKColorSpaceTransferFn.

SKColorSpaceTransferFn(Single[])

Creates a new instance of SKColorSpaceTransferFn.

Fields

Empty

Properties

A

Gets or sets the A coefficient.

B

Gets or sets the B coefficient.

C

Gets or sets the C coefficient.

D

Gets or sets the D coefficient.

E

Gets or sets the E coefficient.

F

Gets or sets the F coefficient.

G

Gets or sets the G coefficient.

Hlg
Linear
Pq
Rec2020
Srgb
TwoDotTwo
Values

Gets the coefficients as an array with the form [G, A, B, C, D, E, F].

Methods

Equals(Object)
Equals(SKColorSpaceTransferFn)
GetHashCode()
Invert()

Inverts coefficients for a common transfer function equation.

Transform(Single)

Transform a single input by this transfer function.

Operators

Equality(SKColorSpaceTransferFn, SKColorSpaceTransferFn)
Inequality(SKColorSpaceTransferFn, SKColorSpaceTransferFn)

Applies to