|
BitmapExtensionsResize(Image, Size) Method
|
Returns a resized
Bitmap image of the original.
Namespace: GSF.DrawingAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax Example
This example shows how to resize an image:
using System;
using GSF.Drawing;
using System.Drawing;
class Program
{
static void Main(string[] args)
{
Bitmap original = (Bitmap)Bitmap.FromFile("Original.jpg");
Bitmap originalResized = original.Resize(new Size(800, 600));
originalResized.Save("OriginalResized.jpg");
original.Dispose();
originalResized.Dispose();
Console.ReadLine();
}
}
See Also