An implementation of IGraphicsCore that uses IImageOperations internally
Definition
Namespace:Telerik.Web.UI.ImageEditor
Assembly:Telerik.Web.UI.dll
Syntax:
public class GDIOperationsBasedGraphicsCore : IGraphicsCore
Inheritance: objectGDIOperationsBasedGraphicsCore
Implements:
Inherited Members
Constructors
public GDIOperationsBasedGraphicsCore()
Methods
Adds text to the image on the provided position.
public Image AddText(Image image, Point position, ImageText text)
The original image being the base for the operation
positionPointThe top/left position relative to the original image.
textImageTextThe definition of the test to insert, including the content itself
Returns:The resultant image of the applied graphics method
Implements:
Applies the provided image operation agaist the original image
public virtual Image ApplyOperation(Image image, IImageOperation operation)
The original image being the base for the operation
operationIImageOperationThe operation to apply
Returns:The resultant image of the applied graphics method
Defines the changes of the pixel opacity of the provided Image
Converts the image to the specified format. This change may degrade the quality of the image.
public Image ConvertTo(Image original, EditableFormat format)
The original image being the base for the operation
formatEditableFormatThe format of the resultant image
Returns:The resultant image of the applied graphics method
Implements:
Crops the provided image using the specified rectangular box
Flips the image content in the specified direction
public Image Flip(Image image, FlipDirection direction)
The original image being the base for the operation
directionFlipDirectionThe direction of the flip change.
Returns:The resultant image of the applied graphics method
Implements:
Insert another image within the original image at the specified location.
public Image InsertImage(Image image, Point position, Image imageToInsert)
The original image being the base for the operation
positionPointThe top/left coordinates relative to the original image.
imageToInsertImageThe image that should be inserted in the original image
Returns:The resultant image of the applied graphics method
Implements:
Resizes the original image by shrinking or expanding it by the provided dimensions
Rotates the image using the enumerated rotation. Currently only rectangular angles' are supported - 90°, 180°, 270°