IImage

Overview

IImage is a interface in Aspose.Slides FOSS for Java. Inherits from: AutoCloseable.

Represents a raster or vector image.

This interface provides 8 methods for working with IImage objects in Java programs. Available methods include: getHeight, getSize, getWidth, save. All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package. Properties: height, size, width.

Properties

NameTypeAccessDescription
sizeSizeReadGets the size of the image.
widthintReadGets the width of the image in pixels.
heightintReadGets the height of the image in pixels.

Methods

SignatureDescription
getSize()SizeGets the size of the image.
getWidth()intGets the width of the image in pixels.
getHeight()intGets the height of the image in pixels.
save(filename: String)Saves the image to the specified file.
save(filename: String, format: String)Saves the image to the specified file in the given format.
save(stream: OutputStream, format: String)Saves the image to the specified stream in the given format.
save(filename: String, format: String, quality: int)Saves the image to the specified file in the given format and quality.
save(stream: OutputStream, format: String, quality: int)Saves the image to the specified stream in the given format and quality.

See Also