Package com.itextpdf.io.image
Class NoWebPLoader
java.lang.Object
com.itextpdf.io.image.AbstractWebPLoader
com.itextpdf.io.image.NoWebPLoader
A no-op class for WebP image data handling.
-
Method Summary
Modifier and TypeMethodDescriptionprotected ImageDatagetImageData(byte[] bytes) GetsImageDatafrom provided WebP raw image bytes.protected ImageDatagetImageData(URL url) GetsImageDatafrom provided WebP URL.protected booleanChecks if webp-image-support module is loaded.
-
Method Details
-
getImageData
GetsImageDatafrom provided WebP raw image bytes.- Specified by:
-
getImageDatain classAbstractWebPLoader - Parameters:
-
bytes- raw bytes to create WebP image data from - Returns:
-
a new WebP
ImageDatafrom raw bytes
-
getImageData
GetsImageDatafrom provided WebP URL.- Specified by:
-
getImageDatain classAbstractWebPLoader - Parameters:
-
url- URL to create WebP image data from - Returns:
-
a new WebP
ImageDatafrom URL
-
isWebPSupported
protected boolean isWebPSupported()Checks if webp-image-support module is loaded.- Specified by:
-
isWebPSupportedin classAbstractWebPLoader - Returns:
-
trueif webp-image-support module is loaded
-