IImage
All Implemented Interfaces: com.aspose.ms.System.IDisposable
public interface IImage extends System.IDisposable
Represents the raster or vector image.
Methods
Method | Description |
---|---|
save(String filename) | Save the image to the file. |
save(String filename, int format) | Save the image to the file. |
save(OutputStream stream, int format) | Save the image to the stream. |
getSize() | Gets an image size. |
getWidth() | Gets the width of the image. |
getHeight() | Gets the height of the image. |
save(String filename)
public abstract void save(String filename)
Save the image to the file.
Parameters:
Parameter | Type | Description |
---|---|---|
filename | java.lang.String |
save(String filename, int format)
public abstract void save(String filename, int format)
Save the image to the file.
Parameters:
Parameter | Type | Description |
---|---|---|
filename | java.lang.String | |
format | int |
save(OutputStream stream, int format)
public abstract void save(OutputStream stream, int format)
Save the image to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.OutputStream | |
format | int |
getSize()
public abstract Dimension getSize()
Gets an image size.
Returns: java.awt.Dimension
getWidth()
public abstract int getWidth()
Gets the width of the image.
Returns: int
getHeight()
public abstract int getHeight()
Gets the height of the image.
Returns: int