Class ImageEditorProvider
- Namespace
- Dynamicweb.Imaging.Providers
- Assembly
- Dynamicweb.Core.dll
Provides functionality for applying color changes and transformations to images.
- Inheritance
-
Image
Editor Provider
- Inherited Members
Properties
Settings
Common settings used for image transformations
Property Value
Methods
ColorChangeToBlackAndWhite(string)
Change image colors to back and white.
Parameters
filePath
stringAbsolute file path.
ColorChangeToGrayscale(string)
Change image colors to grayscale.
Parameters
filePath
stringAbsolute file path.
ColorChangeToNegative(string)
Change image colors to negative.
Parameters
filePath
stringAbsolute file path.
ColorChangeToSepia(string)
Change image colors to sepia.
Parameters
filePath
stringAbsolute file path.
ColorCorrection(string, int, int, int)
Change image colors based on contrast, brightness and 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
Parameters
Crop(string, int, int, int, int)
Applies cropping to an image.
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).
Parameters
filePath
stringAbsolute file path.
FlipVertical(string)
Flip the image vertically (y-axis).
Parameters
filePath
stringAbsolute file path.
GetImageTypeFromFile(string)
Get image type by file name
Parameters
filePath
stringThe image file path
Returns
Reset(string)
Cancel any changes and revert to the original image.
Parameters
filePath
string
Resize(string, int, int, bool)
Resizes an image.
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.
Parameters
filePath
stringAbsolute file path.
Rotate90(string)
Rotate the image 90 degrees.
Parameters
filePath
stringAbsolute file path.
Rotate90Counterclockwise(string)
Rotate the image 90 degrees counterclockwise.
Parameters
filePath
stringAbsolute file path
Save(string, string)
Saves an image.