Class ImageEditorProvider
- Namespace
- Dynamicweb.Imaging.Providers
- Assembly
- Dynamicweb.Core.dll
Provides functionality for applying color changes and transformations to images.
public abstract class ImageEditorProvider
- Inheritance
-
ImageEditorProvider
- Inherited Members
Properties
Settings
Common settings used for image transformations
public ImageEditorSettings Settings { get; set; }
Property Value
Methods
ColorChangeToBlackAndWhite(string)
Change image colors to back and white.
public abstract void ColorChangeToBlackAndWhite(string filePath)
Parameters
filePathstringAbsolute file path.
ColorChangeToGrayscale(string)
Change image colors to grayscale.
public abstract void ColorChangeToGrayscale(string filePath)
Parameters
filePathstringAbsolute file path.
ColorChangeToNegative(string)
Change image colors to negative.
public abstract void ColorChangeToNegative(string filePath)
Parameters
filePathstringAbsolute file path.
ColorChangeToSepia(string)
Change image colors to sepia.
public abstract void ColorChangeToSepia(string filePath)
Parameters
filePathstringAbsolute file path.
ColorCorrection(string, int, int, int)
Change image colors based on contrast, brightness and saturation.
public abstract void ColorCorrection(string filePath, int contrast, int brightness, int saturation)
Parameters
filePathstringAbsolute file path.
contrastintColor contrast.
brightnessintColor brightness.
saturationintColor saturation.
Copy(string, string)
Copies an image file from soure path to detination path
public abstract void Copy(string sourceFilePath, string destinationFilePath)
Parameters
Crop(string, int, int, int, int)
Applies cropping to an image.
public abstract void Crop(string filePath, int left, int top, int right, int bottom)
Parameters
filePathstringAbsolute file path.
leftintPosition of cropping from the left.
topintPosition of cropping from the top.
rightintPosition of cropping from the right.
bottomintPosition of cropping from the bottom.
FlipHorizontal(string)
Flip the image horizontally (x-axis).
public abstract void FlipHorizontal(string filePath)
Parameters
filePathstringAbsolute file path.
FlipVertical(string)
Flip the image vertically (y-axis).
public abstract void FlipVertical(string filePath)
Parameters
filePathstringAbsolute file path.
GetImageTypeFromFile(string)
Get image type by file name
protected ImageType GetImageTypeFromFile(string filePath)
Parameters
filePathstringThe image file path
Returns
Reset(string)
Cancel any changes and revert to the original image.
public abstract void Reset(string filePath)
Parameters
filePathstring
Resize(string, int, int, bool)
Resizes an image.
public abstract void Resize(string filePath, int width, int height, bool maintainAspectRatio)
Parameters
filePathstringAbsolute file path.
widthintMaximum image width.
heightintMaximum image height.
maintainAspectRatioboolWhether the rezising should maintain the aspect ratio of the original image.
Rotate180(string)
Rotate the image 90 degrees.
public abstract void Rotate180(string filePath)
Parameters
filePathstringAbsolute file path.
Rotate90(string)
Rotate the image 90 degrees.
public abstract void Rotate90(string filePath)
Parameters
filePathstringAbsolute file path.
Rotate90Counterclockwise(string)
Rotate the image 90 degrees counterclockwise.
public abstract void Rotate90Counterclockwise(string filePath)
Parameters
filePathstringAbsolute file path
Save(string, string)
Saves an image.
public abstract void Save(string sourceFilePath, string destinationFilePath)