IImage

IImage interface

Represents a raster or vector image.

public interface IImage : IDisposable

Properties

NameDescription
Height { get; }Gets the height of the image in pixels.
Size { get; }Gets the size of the image.
Width { get; }Gets the width of the image in pixels.

Methods

NameDescription
Save(string)Saves the image to a file.
Save(Stream, ImageFormat)Saves the image to a stream in the specified format.
Save(string, ImageFormat)Saves the image to a file in the specified format.
Save(Stream, ImageFormat, int)Saves the image to a stream in the specified format and quality.
Save(string, ImageFormat, int)Saves the image to a file in the specified format and quality.

Remarks

This interface provides a common abstraction for handling both raster and vector images. Implementations may vary depending on the underlying image type.

See Also