public interface IImage
extends com.aspose.ms.System.IDisposable
Represents a raster or vector image.
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Gets the height of the image in pixels.
|
java.awt.Dimension |
getSize()
Gets the size of the image.
|
int |
getWidth()
Gets the width of the image in pixels.
|
void |
save(java.io.OutputStream stream,
int format)
Saves the image to a stream in the specified format.
|
void |
save(java.io.OutputStream stream,
int format,
int quality)
Saves the image to a stream in the specified format and quality.
|
void |
save(java.lang.String filename)
Saves the image to a file.
|
void |
save(java.lang.String filename,
int format)
Saves the image to a file in the specified format.
|
void |
save(java.lang.String filename,
int format,
int quality)
Saves the image to a file in the specified format and quality.
|
void save(java.lang.String filename)
Saves the image to a file.
filename - The path to the file where the image will be saved.void save(java.lang.String filename,
int format)
Saves the image to a file in the specified format.
filename - The path to the file where the image will be saved.format - The image format.void save(java.io.OutputStream stream,
int format)
Saves the image to a stream in the specified format.
stream - The stream where the image will be saved.format - The image format.void save(java.lang.String filename,
int format,
int quality)
Saves the image to a file in the specified format and quality.
filename - The path to the file where the image will be saved.format - The image format.quality - The quality of the saved image (0 to 100).
This parameter only affects saving in ImageFormat.Jpeg; for all other formats, it is ignored.void save(java.io.OutputStream stream,
int format,
int quality)
Saves the image to a stream in the specified format and quality.
stream - The stream where the image will be saved.format - The image format.quality - The quality of the saved image (0 to 100).
This parameter only affects saving in ImageFormat.Jpeg; for all other formats, it is ignored.java.awt.Dimension getSize()
Gets the size of the image.
int getWidth()
Gets the width of the image in pixels.
int getHeight()
Gets the height of the image in pixels.
Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.