IImage
IImage class
Represents a raster or vector image.
This interface provides a common abstraction for handling both raster and vector images.
Implementations may vary depending on the underlying image type.
IImage
Name | Description |
---|---|
IImage() |
Returns: IImage
getHeight
Name | Description |
---|---|
getHeight () | Gets the height of the image in pixels. |
Returns: int
getSize
Name | Description |
---|---|
getSize () | Gets the size of the image. |
Returns: Dimension
getWidth
Name | Description |
---|---|
getWidth () | Gets the width of the image in pixels. |
Returns: int
save
Name | Description |
---|---|
save (String) | Saves the image to a file. |
Parameters:
Name | Type | Description |
---|---|---|
filename | String | The path to the file where the image will be saved. |
Returns: void
save
Name | Description |
---|---|
save (String, int) | Saves the image to a file in the specified format. |
Parameters:
Name | Type | Description |
---|---|---|
filename | String | The path to the file where the image will be saved. |
format | int | The image format. |
Returns: void
save
Name | Description |
---|---|
save (OutputStream, int) | Saves the image to a stream in the specified format. |
Parameters:
Name | Type | Description |
---|---|---|
stream | OutputStream | The stream where the image will be saved. |
format | int | The image format. |
Returns: void
save
Name | Description |
---|---|
save (String, int, int) | Saves the image to a file in the specified format and quality. |
Parameters:
Name | Type | Description |
---|---|---|
filename | String | The path to the file where the image will be saved. |
format | int | The image format. |
quality | int | The quality of the saved image (0 to 100). This parameter only affects saving in ImageFormat#Jpeg; for all other formats, it is ignored. |
Returns: void
save
Name | Description |
---|---|
save (OutputStream, int, int) | Saves the image to a stream in the specified format and quality. |
Parameters:
Name | Type | Description |
---|---|---|
stream | OutputStream | The stream where the image will be saved. |
format | int | The image format. |
quality | int | The quality of the saved image (0 to 100). This parameter only affects saving in ImageFormat#Jpeg; for all other formats, it is ignored. |
Returns: void