CCT.NUI.Samples.ImageManipulation.ImageOperations.FastResize C# (CSharp) Method

FastResize() public static method

public static FastResize ( Image originalImage, int newWidth, int newHeight ) : Image
originalImage Image
newWidth int
newHeight int
return Image
        public static Image FastResize(Image originalImage, int newWidth, int newHeight)
        {
            return Resize(originalImage, newWidth, newHeight, CompositingQuality.HighSpeed, SmoothingMode.HighSpeed, InterpolationMode.Low, PixelOffsetMode.HighSpeed);
        }

Usage Example

 private void SetSize(Size size)
 {
     this.size   = size;
     this.bitmap = (Bitmap)ImageOperations.FastResize(this.originalImage, (int)size.Width, (int)size.Height);
 }