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