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
filePath
stringAbsolute file path.
ColorChangeToGrayscale(string)
Change image colors to grayscale.
public abstract void ColorChangeToGrayscale(string filePath)
Parameters
filePath
stringAbsolute file path.
ColorChangeToNegative(string)
Change image colors to negative.
public abstract void ColorChangeToNegative(string filePath)
Parameters
filePath
stringAbsolute file path.
ColorChangeToSepia(string)
Change image colors to sepia.
public abstract void ColorChangeToSepia(string filePath)
Parameters
filePath
stringAbsolute 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
filePath
stringAbsolute file path.
contrast
intColor contrast.
brightness
intColor brightness.
saturation
intColor 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
filePath
stringAbsolute file path.
left
intPosition of cropping from the left.
top
intPosition of cropping from the top.
right
intPosition of cropping from the right.
bottom
intPosition of cropping from the bottom.
FlipHorizontal(string)
Flip the image horizontally (x-axis).
public abstract void FlipHorizontal(string filePath)
Parameters
filePath
stringAbsolute file path.
FlipVertical(string)
Flip the image vertically (y-axis).
public abstract void FlipVertical(string filePath)
Parameters
filePath
stringAbsolute file path.
GetImageTypeFromFile(string)
Get image type by file name
protected ImageType GetImageTypeFromFile(string filePath)
Parameters
filePath
stringThe image file path
Returns
Reset(string)
Cancel any changes and revert to the original image.
public abstract void Reset(string filePath)
Parameters
filePath
string
Resize(string, int, int, bool)
Resizes an image.
public abstract void Resize(string filePath, int width, int height, bool maintainAspectRatio)
Parameters
filePath
stringAbsolute file path.
width
intMaximum image width.
height
intMaximum image height.
maintainAspectRatio
boolWhether 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
filePath
stringAbsolute file path.
Rotate90(string)
Rotate the image 90 degrees.
public abstract void Rotate90(string filePath)
Parameters
filePath
stringAbsolute file path.
Rotate90Counterclockwise(string)
Rotate the image 90 degrees counterclockwise.
public abstract void Rotate90Counterclockwise(string filePath)
Parameters
filePath
stringAbsolute file path
Save(string, string)
Saves an image.
public abstract void Save(string sourceFilePath, string destinationFilePath)