| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes object.
|
byte[] |
getBinaryData()
Returns the copy of an image's data.
|
java.lang.String |
getContentType()
Returns a MIME type of an image, encoded in
BinaryData(getBinaryData()). |
int |
getHeight()
Returns a height of an image.
|
IImage |
getImage()
Returns the copy of an image.
|
ISvgImage |
getSvgImage()
Returns or sets ISvgImage object
ISvgImage |
java.awt.image.BufferedImage |
getSystemImage()
Deprecated.
Use Image property instead. The property will be removed after release of version 24.7.
|
int |
getWidth()
Returns a width of an image.
|
int |
getX()
Returns a X-offset of an image.
|
int |
getY()
Returns a Y-offset of an image.
|
int |
hashCode()
Returns the hash code of an image.
|
void |
replaceImage(byte[] newImageData)
Replaces image data.
|
void |
replaceImage(IImage newImage)
Replaces image data.
|
void |
replaceImage(IPPImage newImage)
Replaces image data.
|
void |
setSvgImage(ISvgImage value)
Returns or sets ISvgImage object
ISvgImage |
public final byte[] getBinaryData()
Returns the copy of an image's data.
Read-only byte[].
getBinaryData in interface IPPImagepublic final java.awt.image.BufferedImage getSystemImage()
Returns the copy of an image.
Read-only BufferedImage.
getSystemImage in interface IPPImagepublic final ISvgImage getSvgImage()
Returns or sets ISvgImage object ISvgImage
getSvgImage in interface IPPImagepublic final void setSvgImage(ISvgImage value)
Returns or sets ISvgImage object ISvgImage
setSvgImage in interface IPPImagepublic final void replaceImage(byte[] newImageData)
Replaces image data.
replaceImage in interface IPPImagenewImageData - The new image's data.com.aspose.ms.System.ArgumentNullException - When newImageData parameter is null.public final void replaceImage(IImage newImage)
Replaces image data. Attention: when Image is metafile - it will be rasterized. Use replaceImage(byte[]) instead
replaceImage in interface IPPImagenewImage - The new image.com.aspose.ms.System.ArgumentNullException - When newImage parameter is null.public final void replaceImage(IPPImage newImage)
Replaces image data.
replaceImage in interface IPPImagenewImage - The new IPPImage.com.aspose.ms.System.ArgumentNullException - When newImage parameter is null.public final java.lang.String getContentType()
Returns a MIME type of an image, encoded in BinaryData(getBinaryData()).
Read-only String.
getContentType in interface IPPImagepublic final int getWidth()
Returns a width of an image.
Read-only int.
public final int getHeight()
Returns a height of an image.
Read-only int.
public final int getX()
Returns a X-offset of an image.
Read-only int.
public final int getY()
Returns a Y-offset of an image.
Read-only int.
public int hashCode()
Returns the hash code of an image.
hashCode in class java.lang.Objectpublic final void dispose()
Disposes object.
dispose in interface com.aspose.ms.System.IDisposableCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.