EditableImage
Represents an Image that can be edited.
Definition
Namespace:Telerik.Web.UI.ImageEditor
Assembly:Telerik.Web.UI.dll
Syntax:
public class EditableImage : IDisposable
Inheritance: objectEditableImage
Implements:
Inherited Members
Constructors
Creates an instance of the EditableImage class from a given Image object, and the Graphics core used for image manipulation.
public EditableImage(Image image, IGraphicsCore core)
The image object from which EditableImage will be created.
coreIGraphicsCoreThe IGraphicsCore object to use for image manipulation.
Creates an instance of the EditableImage class from a given Image object.
public EditableImage(Image image)
The image object from which EditableImage will be created.
Creates an instance of the EditableImage class from a given Stream.
public EditableImage(Stream stream)
The Stream from which the editable image will be created.
Creates an instance of the EditableImage class from a specified location.
Properties
Gets a bool value that indicates whether the dispose method of the EditableImage has been called.
public virtual bool IsDisposed { get; protected set; }
Gets the ImageFormat of the image being edited.
public virtual ImageFormat RawFormat { get; }
Gets the size of the image. (Pair of width and height of the image.)
public virtual Size Size { get; }
Methods
Applies the IImageOperation(s) to the current image in the order they appear in the operations collection.
public void ApplyImageOperations(IEnumerable<IImageOperation> operations)
Collection of IImageOperation(s) to apply.
public void CalculateImageFormat()
Changes the transparency of the current image.
public void ChangeOpacity(double opacity)
A double value between 0.00 - 1.00, representing the opacity. Passing 1 means no opacity.
Creates an identical object of the editable image.
Changes the format of the editable image.
public void ConvertTo(EditableFormat format)
The new image format of the editable image.
Crop the image into the given rectangle.
public void Crop(Rectangle rectange)
The rectangle to crop the image into.
Disposes the EditableImage object.
public void Dispose()
Implements:
Fixes a problem with the Gif file format support in the .NET framework.
public void FixGifColors()
Flips the image in the specified direction.
public void Flip(FlipDirection direction)
The flipping direction. (Possible values: Vertical, Horizontal and Both)
Resizes the image to the size specified.
Rotates the image clockwise, in the specified rotation direction.
public void Rotate(Rotation rotate)
The rotation direction.(Possible values of clockwise rotation: Rotate90, Rotate180 and Rotate270).