Example 1:

Original:

original-image

Result

aaaa

Code example :

ImageEditor _editor = new ImageEditor(_filePath);
_editor.SetContrast(contrast);
_editor.SetBrightness(brightness);
_editorResponse = _editor.Save(_saveFilePath);

Example 2:

Original:

original-image

Result

result-image

Code example :

ImageEditor _editor = new ImageEditor(_filePath);               
_editor.Resize(_width, _height);
_editorResponse = _editor.Save(_saveFilePath);

Example 3:

Original:

original-image

Result

result-image

Code example :

ImageEditor _editor = new ImageEditor(_filePath);
_editor.Resize(imgWidth, imgHeight);
_editor.InsertText(watermarkText, xPosition, yPosition, fontName,fontSize, fontStyleBold, fontStyleItalic, fontStyleUnderline, colorName);
_editorResponse = _editor.Save(_saveFilePath);

Example 4 insert image to original image

- upload image

Original:

original-image

Result

result-image

Code example :

ImageEditor _editor = new ImageEditor(_filePath);
_editor.Resize(imgWidth, imgHeight);
System.IO.Stream _inputStream = file.InputStream;                
ImageEditor _editorInsertImg = new ImageEditor(_inputStream);
_editorInsertImg.Resize(cw, ch);
_editorInsertImg.RotateImageByAngle(rotateAngle);
_editorInsertImg.Save(Server.MapPath("/uploads/temp/resize.jpg"));
_editor.InsertImage(_editorInsertImg.GetCurrentBitmap, cx, cy);
_editorResponse = _editor.Save(_saveFilePath);

Example 5:

Original:

original-image

Result

result-image

Code example :

ImageEditor _editor = new ImageEditor(_filePath);
_editor.SetGrayscale();
_editor.SetInvert();
_editorResponse = _editor.Save(_saveFilePath);

Example 6:

Original:

original-image

Result

result-image

Code example :

Utils.ColorFilterTypes _colorType = (Utils.ColorFilterTypes)Enum.Parse(typeof(Utils.ColorFilterTypes), colorType);

ImageEditor _editor = new ImageEditor(_filePath);
_editor.SetColorFilter(_colorType);
_editorResponse = _editor.Save(_saveFilePath);

Example 7:

Original:

original-image

Result

result-image

Code example :

ImageEditor _editor = new ImageEditor(_filePath);
_editor.SetOpacity(float.Parse(opacity) / 100);
_editorResponse = _editor.Save(_saveFilePath);

Example 8:

Original:

original-image

Result

result-image

Code example :

ImageEditor _editor = new ImageEditor(_filePath);
if (sizeValue == "width")
{
    _editor.Resize_withWidth(newWidth));
}
else if (sizeValue == "height")
{
    _editor.Resize_withHeight(newHeight);
}
_editorResponse = _editor.Save(_saveFilePath);

Example 9:

- upload image

Original:

original-image

Result

result-image

Code example :

ImageEditor _editor = new ImageEditor(_filePath);
_editor.Resize(imgWidth, imgHeight);
_editor.InsertText(watermarkText, xPosition, yPosition, fontName,fontSize, fontStyleBold, fontStyleItalic, fontStyleUnderline, colorName);
_editorResponse = _editor.Save(_saveFilePath);