public final class WebPFormat extends ImageFormat
Represents WebP image format.
filePath, stream
Constructor and Description |
---|
WebPFormat(InputStream input)
Initializes a new instance of the
WebPFormat class. |
WebPFormat(String fileName)
Initializes a new instance of the
WebPFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes metadata.
|
int |
getType()
Gets document type.
|
fromFile, fromFile, fromStream, getByteOrder, getHeight, getWidth
close, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public WebPFormat(String fileName)
Initializes a new instance of the WebPFormat
class.
fileName
- Absolute path to the file.public WebPFormat(InputStream input)
Initializes a new instance of the WebPFormat
class.
input
- File stream.public int getType()
Gets document type.
getType
in class FormatBase
public void cleanMetadata()
Removes metadata. Not supported for current format.
cleanMetadata
in class ImageFormat
Copyright © 2018. All rights reserved.