SKColorSpaceTransferFn Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈