IImage class

IImage class

Represents a raster or vector image.

The IImage type exposes the following members:

Properties

PropertyDescription
sizeGets the size of the image.
widthGets the width of the image in pixels.
heightGets the height of the image in pixels.

Methods

MethodDescription
save(self, filename)Saves the image to a file.
save(self, filename, format)Saves the image to a file in the specified format.
save(self, stream, format)Saves the image to a stream in the specified format.
save(self, filename, format, quality)Saves the image to a file in the specified format and quality.
save(self, stream, format, quality)Saves the image to a stream 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