Example #1
0
 public ImageProcessor(IHttpClientWrapperAsync httpClient, IFaceDetection faceDetection, IImageCache imageCache, IImageEffect imageEffect)
 {
     this.httpClient    = httpClient;
     this.faceDetection = faceDetection;
     this.imageCache    = imageCache;
     this.imageEffect   = imageEffect;
 }
Example #2
0
 /// <summary>
 /// Sets two input textures
 /// </summary>
 /// <param name="imageEffect">The post effect.</param>
 /// <param name="texture">The texture.</param>
 /// <param name="texture2">The texture2.</param>
 /// <param name="texture3">The texture3.</param>
 public static void SetInput(this IImageEffect imageEffect, Texture texture, Texture texture2, Texture texture3)
 {
     imageEffect.SetInput(0, texture);
     imageEffect.SetInput(1, texture2);
     imageEffect.SetInput(2, texture3);
 }
Example #3
0
 /// <summary>
 /// Sets an input texture
 /// </summary>
 /// <param name="imageEffect">The post effect.</param>
 /// <param name="texture">The texture.</param>
 public static void SetInput(this IImageEffect imageEffect, Texture texture)
 {
     imageEffect.SetInput(0, texture);
 }
Example #4
0
 public void ApplyEffect(IImageEffect effect)
 {
     effect.Apply(this);
 }
Example #5
0
 public void Add(IImageEffect filter)
 {
     _effects.Add(filter);
 }