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); }
public static bool CanCreate(IPresentationImage image) { return(Grayscale.CanCreateFrom(image) || Color.CanCreateFrom(image) || Other.CanCreateFrom(image)); }