示例#1
0
        public static IAutoVoiLutApplicator Create(IPresentationImage image)
        {
            if (Grayscale.CanCreateFrom(image))
            {
                return new Grayscale {
                           Image = image
                }
            }
            ;

            if (Color.CanCreateFrom(image))
            {
                return new Color {
                           Image = image
                }
            }
            ;

            if (Other.CanCreateFrom(image))
            {
                return new Other {
                           Image = image
                }
            }
            ;

            return(null);
        }
示例#2
0
 public static bool CanCreate(IPresentationImage image)
 {
     return(Grayscale.CanCreateFrom(image) || Color.CanCreateFrom(image) || Other.CanCreateFrom(image));
 }