Esempio n. 1
0
 public static extern ReturnCode DsmWinNew(
     [In, Out] TWIdentity origin,
     [In, Out] TWIdentity destination,
     DataGroups dg,
     DataArgumentType dat,
     Message msg,
     [In, Out] TWGrayResponse data);
Esempio n. 2
0
 public static ReturnCode DsmEntry(
     TWIdentity origin,
     TWIdentity destination,
     Message msg,
     TWGrayResponse data)
 {
     if (PlatformInfo.Current.IsWindows)
     {
         if (PlatformInfo.Current.UseNewWinDSM)
         {
             return(NativeMethods.DsmWinNew(origin, destination, DataGroups.Image, DataArgumentType.GrayResponse, msg, data));
         }
         else
         {
             return(NativeMethods.DsmWinOld(origin, destination, DataGroups.Image, DataArgumentType.GrayResponse, msg, data));
         }
     }
     else if (PlatformInfo.Current.IsLinux)
     {
         return(NativeMethods.DsmLinux(origin, destination, DataGroups.Image, DataArgumentType.GrayResponse, msg, data));
     }
     throw new PlatformNotSupportedException();
 }
Esempio n. 3
0
 /// <summary>
 /// This operation causes the Source to transform any grayscale data according to the response
 /// curve specified.
 /// </summary>
 /// <param name="response">The response.</param>
 /// <returns></returns>
 public ReturnCode Set(TWGrayResponse response)
 {
     Session.VerifyState(4, 4, DataGroups.Image, DataArgumentType.GrayResponse, Message.Set);
     return(Dsm.DsmEntry(Session.AppId, Session.CurrentSource.Identity, Message.Set, response));
 }