// This is an internal member and should not be used. // Returns a bitmap which is the resized (to newWidth and newHeight) of the first frame. public Image Resize(int newWidth, int newHeight) { Frame frame = dgImage.GetFrame(0); Frame newFrame = frame.AdjustImage(0, 0, width, 0, 0, height, 0, 0, newWidth, 0, 0, newHeight); var newImage = new PortableImage(newWidth, newHeight, newFrame.PixelFormat); newImage.AddFrame(newFrame); return new Bitmap(newImage); }