Exemplo n.º 1
0
 /// <summary>
 /// creates a new texture that is a gaussian blurred version of the original
 /// </summary>
 /// <returns>The blurred texture.</returns>
 /// <param name="image">Image.</param>
 /// <param name="deviation">Deviation.</param>
 public static Texture2D createBlurredTexture(Texture2D image, double deviation = 1)
 {
     return(GaussianBlur.createBlurredTexture(image, deviation));
 }
Exemplo n.º 2
0
 public static Color[] createBlurredGrayscaleTexture(Color[] srcData, int width, int height, double deviation = 1)
 {
     return(GaussianBlur.createBlurredGrayscaleTexture(srcData, width, height, deviation));
 }
Exemplo n.º 3
0
 /// <summary>
 /// creates a new texture that is a gaussian blurred version of the original in grayscale
 /// </summary>
 /// <returns>The blurred texture.</returns>
 /// <param name="image">Image.</param>
 /// <param name="deviation">Deviation.</param>
 public static Texture2D CreateBlurredGrayscaleTexture(Texture2D image, double deviation = 1)
 {
     return(GaussianBlur.CreateBlurredGrayscaleTexture(image, deviation));
 }