Esempio n. 1
0
 public static NativeColor FromManaged(Color color)
 {
     NativeColor result = new NativeColor();
       result.A = color.A;
       result.R = color.R;
       result.G = color.G;
       result.B = color.B;
       return result;
 }
Esempio n. 2
0
        public static NativeColor FromManaged(Color color)
        {
            NativeColor result = new NativeColor();

            result.A = color.A;
            result.R = color.R;
            result.G = color.G;
            result.B = color.B;
            return(result);
        }
Esempio n. 3
0
        public static NativeDiffOptions FromManaged(DiffOptions options)
        {
            NativeDiffOptions result = new NativeDiffOptions();

            result.ErrorColor             = NativeColor.FromManaged(options.ErrorColor);
            result.Tolerance              = options.Tolerance;
            result.OverlayTransparency    = options.OverlayTransparency;
            result.OverlayType            = options.OverlayType;
            result.WeightByDiffPercentage = (byte)(options.WeightByDiffPercentage ? 1 : 0);
            result.IgnoreColor            = (byte)(options.IgnoreColor ? 1 : 0);
            return(result);
        }