Table of Contents

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

ImageEditorSettings

Methods

ColorChangeToBlackAndWhite(string)

Change image colors to back and white.

public abstract void ColorChangeToBlackAndWhite(string filePath)

Parameters

filePath string

Absolute file path.

ColorChangeToGrayscale(string)

Change image colors to grayscale.

public abstract void ColorChangeToGrayscale(string filePath)

Parameters

filePath string

Absolute file path.

ColorChangeToNegative(string)

Change image colors to negative.

public abstract void ColorChangeToNegative(string filePath)

Parameters

filePath string

Absolute file path.

ColorChangeToSepia(string)

Change image colors to sepia.

public abstract void ColorChangeToSepia(string filePath)

Parameters

filePath string

Absolute 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 string

Absolute file path.

contrast int

Color contrast.

brightness int

Color brightness.

saturation int

Color saturation.

Copy(string, string)

Copies an image file from soure path to detination path

public abstract void Copy(string sourceFilePath, string destinationFilePath)

Parameters

sourceFilePath string

Source file path

destinationFilePath string

Destination file path

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 string

Absolute file path.

left int

Position of cropping from the left.

top int

Position of cropping from the top.

right int

Position of cropping from the right.

bottom int

Position of cropping from the bottom.

FlipHorizontal(string)

Flip the image horizontally (x-axis).

public abstract void FlipHorizontal(string filePath)

Parameters

filePath string

Absolute file path.

FlipVertical(string)

Flip the image vertically (y-axis).

public abstract void FlipVertical(string filePath)

Parameters

filePath string

Absolute file path.

GetImageTypeFromFile(string)

Get image type by file name

protected ImageType GetImageTypeFromFile(string filePath)

Parameters

filePath string

The image file path

Returns

ImageType

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 string

Absolute file path.

width int

Maximum image width.

height int

Maximum image height.

maintainAspectRatio bool

Whether 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 string

Absolute file path.

Rotate90(string)

Rotate the image 90 degrees.

public abstract void Rotate90(string filePath)

Parameters

filePath string

Absolute file path.

Rotate90Counterclockwise(string)

Rotate the image 90 degrees counterclockwise.

public abstract void Rotate90Counterclockwise(string filePath)

Parameters

filePath string

Absolute file path

Save(string, string)

Saves an image.

public abstract void Save(string sourceFilePath, string destinationFilePath)

Parameters

sourceFilePath string

Absolute path to source file.

destinationFilePath string

Absolute path to destination file.

To top