im tring to write a image editor which you can edit the image on the client and make the changes on the server (lite version of paint). it does filtering, crop resize and ... problem: imagine i choose 10px of blurness in my editor, when i pass the value 10 to factory.GaussianBlur(value); i get the invalid result. please let me know how can i convert px value to GaussianBlur kernel value
the sample code is
private static bool BlurFilter(string sourceImage, string destinationImage, int value = 100)
{
try
{
if (string.IsNullOrEmpty(destinationImage)) destinationImage = sourceImage;
ImageFactory factory = new ImageFactory();
factory.Load(sourceImage);
factory.GaussianBlur(value);
factory.Save(destinationImage);
factory.Image.Dispose();
factory.Dispose();
factory = null;
return true;
}
catch (Exception ex)
{
ExceptionLogger.Log(ex);
return false;
}
}