public ImageProcessor(IHttpClientWrapperAsync httpClient, IFaceDetection faceDetection, IImageCache imageCache, IImageEffect imageEffect) { this.httpClient = httpClient; this.faceDetection = faceDetection; this.imageCache = imageCache; this.imageEffect = imageEffect; }
/// <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); }
/// <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); }
public void ApplyEffect(IImageEffect effect) { effect.Apply(this); }
public void Add(IImageEffect filter) { _effects.Add(filter); }