ResizeOperation
Class
Definition
Namespace:Telerik.Web.UI.ImageEditor
Assembly:Telerik.Web.UI.dll
Syntax:
C#
public class ResizeOperation : ImageOperation, IImageOperation
Inheritance: objectImageOperationResizeOperation
Implements:
Inherited Members
Constructors
Properties
Methods
Resize the image using a specific interpolation mode.
C#
public Image Resize(Image originalImg, Size newSize, InterpolationMode intMode)
The original image to resize.
newSizeSizeThe new image size.
intModeInterpolationModeThe interpolation mode to use. All modes except NearestNeighbor will cause a small loss (1-2 px) of image data around the edges of the original image.
Returns:The resized image. If the new size is identical to the original size, then the original image is returned.