public void TransferFnIsFullCircle() { var values = new float[7] { 1, 2, 3, 4, 5, 6, 7 }; var tf = new SKColorSpaceTransferFn(values); var tfValues = tf.Values; Assert.Equal(values, tfValues); }
public SKColorSpace GetSKColorSpace() { if (skColorSpace == null) { skColorSpace = SKColorSpace.CreateIcc(Profile.GetBody(true).ToByteArray()); xyzD50 = skColorSpace.FromXyzD50(); skColorSpace.GetNumericalTransferFunction(out var spaceTransfer); transfer = spaceTransfer.Invert(); } return(skColorSpace); }
public SKColorSpace GetSKColorSpace() { if (skColorSpace == null) { skColorSpace = SKColorSpace.CreateIcc(Profile.GetBody(true).GetBuffer()); if (skColorSpace != null) { skColorSpace.GetNumericalTransferFunction(out var spaceTransfer); transfer = spaceTransfer.Invert(); } } return(skColorSpace); }