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
SkiaSharp
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기