Ejemplo n.º 1
0
        /// <summary>
        /// Changes the encoding of buffers in a transform originally created with at least 16 bits of precision.
        /// </summary>
        /// <param name="inputFormat">The input format.</param>
        /// <param name="outputFormat">The output format.</param>
        /// <returns>true if successful, otherwise false.</returns>
        /// <exception cref="ObjectDisposedException">
        /// The Transform has already been disposed.
        /// </exception>
        /// <remarks>
        /// <para>
        /// This method is provided for backwards compatibility and should be avoided whenever possible.
        /// </para>
        /// <para>
        /// Requires Little CMS version 2.1 or later.
        /// </para>
        /// </remarks>
        public bool ChangeBuffersFormat(uint inputFormat, uint outputFormat)
        {
            EnsureNotClosed();

            return(Interop.ChangeBuffersFormat(handle, inputFormat, outputFormat) != 0);
        }