BlogEngine.Core.FileSystem.Image.ResizeImage C# (CSharp) Method

ResizeImage() public method

resizes the image to a new size. The image will be replaced
public ResizeImage ( Size newSize ) : Image
newSize System.Drawing.Size the new Size for the image
return Image
        public Image ResizeImage(Size newSize)
        {
            this.bitMap = (Bitmap)resizeImage((System.Drawing.Image)this.bitMap, newSize);
            var nfile = BlogService.UploadFile(BmpToArray(this.bitMap), this.Name, this.ParentDirectory, true);
            this.FileContents = nfile.FileContents;
            nfile.Dispose();
            return this;
        }

Same methods

Image::ResizeImage ( decimal Percent ) : Image