Class ImageExtensions

Class ImageExtensions

Namespace: Aspose.Imaging.Extensions
Assembly: Aspose.Imaging.dll (25.2.0)

Contains extension methods for conversions based on System.Drawing.Image and Aspose.Imaging.Image.

public static class ImageExtensions

Inheritance

objectImageExtensions

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Methods

ToGdiImage(Image)

Converts the Aspose.Imaging.Image to the System.Drawing.Image.

[Obsolete("Please do not use this method as you may get OutOfMemoryException if image is too large for GDI to fit.")]
public static Image ToGdiImage(Image image)

Parameters

image Image

The Aspose.Imaging.Image to convert.

Returns

Image

The converted System.Drawing.Image.

Remarks

Warning, the GDI image may get lower bounds than image has. To get all parts of the image use more safe extension method ToGdiImageFull.