Class ImageResult
java.lang.Object
com.itextpdf.pdf2data.result.value.AbstractValueResult
com.itextpdf.pdf2data.result.value.ImageResult
Class which represents image result.
-
Constructor Summary
ConstructorDescriptionImageResult
(PageLocationMetaResult pageLocationMeta, String base64) Creates an instance of image result. -
Method Summary
Methods inherited from class com.itextpdf.pdf2data.result.value.AbstractValueResult
getResultType
-
Constructor Details
-
ImageResult
Creates an instance of image result.- Parameters:
-
pageLocationMeta
- image page location -
base64
- representation of image bytes as base64 string
-
-
Method Details
-
getPageLocationMeta
Get image page location- Returns:
- image page location
-
getBase64
Get image base64 string- Returns:
- image base64 string
-
getBytes
public byte[] getBytes()Get image bytes.- Returns:
- image bytes
-
getImage
Get image object.- Returns:
- image object
- Throws:
-
IOException
- if any I/O exception occurs
-
cloneWithoutMeta
Description copied from class:AbstractValueResult
Clones this instance without metadata entries.- Specified by:
-
cloneWithoutMeta
in classAbstractValueResult
- Returns:
- clone of the current result without metadata
-
equals
- Overrides:
-
equals
in classAbstractValueResult
-
hashCode
public int hashCode()- Overrides:
-
hashCode
in classAbstractValueResult
-