Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of the <see cref="Context"/> class.
 /// </summary>
 /// <param name="plugin">
 /// A pointer to a collection of plug-ins, or <see cref="IntPtr.Zero"/> if no plug-ins.
 /// </param>
 /// <param name="userData">
 /// A pointer to user-defined data that will be forwarded to plug-ins and the
 /// context-specific logger, or <see cref="IntPtr.Zero"/> if none.
 /// </param>
 /// <returns>A new <see cref="Context"/> instance.</returns>
 /// <exception cref="LcmsNETException">
 /// Failed to create instance.
 /// </exception>
 /// <remarks>
 /// Requires Little CMS version 2.6 or later.
 /// </remarks>
 public static Context Create(IntPtr plugin, IntPtr userData)
 {
     return(new Context(Interop.CreateContext(plugin, userData)));
 }