public void ApplyBrightness(Photo photo) { Console.WriteLine("Apply brightness"); }
public void ApplyContrast(Photo photo) { Console.WriteLine("Applying Contrast..."); }
public void ApplyContrast(Photo photo) { Console.WriteLine("Äpply contrast"); }
internal void ApplyContrast(Photo photo) { Console.WriteLine("Apply Contrast"); }
static void RemoveRedEyeFilter(Photo photo) //Our custom filter { Console.WriteLine("Apply RemoveRedEye"); }
static void RemoveRedEye(Photo photo) { Console.WriteLine("Remove Red Eye"); }
public void AutoFilter(Photo photo) { Console.WriteLine("Applying Auto filter"); }
public void ApplyEyeMask(Photo photo) { Console.WriteLine("Apply Eye Mask"); }
public void ApplyBlackAndWhite(Photo photo) { Console.WriteLine("Apply Black and White"); }
public void ApplyDogFacialParts(Photo photo) { Console.WriteLine("Apply Dog Facial Parts"); }
public void ApplyMustache(Photo photo) { Console.WriteLine("Apply Mustache"); }
static void RemoveRedEyerFilter(Photo photo) { Console.WriteLine("Apply RemoveRedEyer"); }
static void RemoveRedEye(Photo photo) => Console.WriteLine("Removed RedEye");
public void Resize(Photo photo) { Console.WriteLine("Apply Resize."); }
public void ApplyContrast(Photo photo) { Console.WriteLine("Apply contrast"); }
public void ApplyFlowerCrown(Photo photo) { Console.WriteLine("Apply Flower Crown"); }
//i could also create my own filter and add it to the delegate public static void RemoveRedeye(Photo photo) { Console.WriteLine("removing redeye"); }
// Now the the framework can be extended without recompiling the code of the framework and redeploy it // The signature has to fit the signature of the delegate (PhotoFilterHandler) in PhotoProcessor static void RemoveRedEyeFilter(Photo photo) { Console.WriteLine("Applying red eye filter..."); }
//create own filter to use with delegate static void RemoveRedEyeFilter(Photo photo) { Console.WriteLine("Remove RedEye"); }
static void Test2(Photo photo) { Console.WriteLine("\nTEST2!!!\n"); }
public void GreyScale(Photo photo) { Console.WriteLine("Applying Grayscale"); }
public void Resize(Photo photo) { throw new NotImplementedException(); }
internal void Resize(Photo photo) { Console.WriteLine("Resize photo"); }
static void RemoveRedEyeFilter(Photo photo) { System.Console.WriteLine("Apply RemoveRedEye"); }
static void RemoveRedEye(Photo photo) { Console.WriteLine("Apply RemoveRedEye"); }
public void Resize(Photo photo) { Console.WriteLine("Photo Resize"); }
public void ApplyBrightness(Photo photo) { Console.WriteLine("Applying Brightness..."); }
static void AddWrinkles(Photo photo) { Console.WriteLine("Added 2 Wrinkles"); //return 2; }
public void Resize(Photo photo) { Console.WriteLine("Resize photo"); }
//to add a new filter, while not changing the PhotoProcessor / PhotoFilters classes: static void RemoveRedEyeFilter(Photo photo) //it must have the same signature as the delegate { System.Console.WriteLine("Apply remove red eye"); }
internal void ApplyBrightness(Photo photo) { Console.WriteLine("ApplyBrightness"); }
//allows for developers to add custom filters static void RemoveRedEyeFilter(Photo photo) { Console.WriteLine("Apply remove red eye"); }
static void RemoveRedEyeFilter(Photo photo) { Console.WriteLine("RemoveRedEyeFilter"); }
//We can now create our own filter without recompiling the code static void ApplySaturation(Photo photo) { Console.WriteLine("Apply staturation"); }