Class ImageEditor
- Namespace
- Dynamicweb.Imaging
- Assembly
- Dynamicweb.Core.dll
Utility which is used to apply color changes and transformations to images.
- Inheritance
-
Image
Editor
- Inherited Members
Properties
ImageBitDepth
Bit depth
Property Value
ImageColors
Number of colors
Property Value
ImagePreview
Preview
Property Value
ImageQuality
Quality (0-100)
Property Value
ImageType
Type of image
Property Value
Methods
ActionCrop(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.
ActionEffectBlackAndWhite(string)
Change image colors to back and white.
Parameters
filePath
stringAbsolute file path.
ActionEffectColorCorrection(string, int, int, int)
Change image colors based on contrast, brightness and saturation.
public void ActionEffectColorCorrection(string filePath, int contrast, int brightness, int saturation)
Parameters
filePath
stringAbsolute file path.
contrast
intColor contrast.
brightness
intColor brightness.
saturation
intColor saturation.
ActionEffectGrayscale(string)
Change image colors to grayscale.
Parameters
filePath
stringAbsolute file path.
ActionEffectNegative(string)
Change image colors to negative.
Parameters
filePath
stringAbsolute file path.
ActionEffectSepia(string)
Change image colors to sepia.
Parameters
filePath
stringAbsolute file path.
ActionFlipHorizontal(string)
Flip the image horizontally (x-axis).
Parameters
filePath
stringAbsolute file path.
ActionFlipVertical(string)
Flip the image vertically (y-axis).
Parameters
filePath
stringAbsolute file path.
ActionReset(string)
Cancel any changes and revert to the original image.
Parameters
filePath
string
ActionResize(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.
ActionRotate180(string)
Rotate the image 90 degrees.
Parameters
filePath
stringAbsolute file path.
ActionRotate90(string)
Rotate the image 90 degrees.
Parameters
filePath
stringAbsolute file path.
ActionRotate90CounterClockwise(string)
Rotate the image 90 degrees counterclockwise.
Parameters
filePath
stringAbsolute file path
ActionSave(string, string)
Saves an image.
Parameters
sourceFilePath
stringAbsolute path to source file.
destinationFilePath
stringAbsolute path to destination file.
CopyImageFile(string, string)
Copies an image file from soure path to detination path
Parameters
GetImageTypeFromFile(string)
Get image type by file name
Parameters
filePath
stringThe image file path