コード例 #1
0
        /// <summary>
        /// Evaluates the given 16-bit number across the tone curve.
        /// </summary>
        /// <param name="v">The value to evaluate.</param>
        /// <returns>The value evaluated across the tone curve.</returns>
        /// <exception cref="ObjectDisposedException">
        /// The ToneCurve has already been disposed.
        /// </exception>
        public ushort Evaluate(ushort v)
        {
            EnsureNotClosed();

            return(Interop.EvaluateToneCurve(handle, v));
        }
コード例 #2
0
        /// <summary>
        /// Evaluates the given floating point number across the tone curve.
        /// </summary>
        /// <param name="v">The value to evaluate.</param>
        /// <returns>The value evaluated across the tone curve.</returns>
        /// <exception cref="ObjectDisposedException">
        /// The ToneCurve has already been disposed.
        /// </exception>
        public float Evaluate(float v)
        {
            EnsureNotClosed();

            return(Interop.EvaluateToneCurve(handle, v));
        }