public final class BmpFormat extends ImageFormat
Represents a BMP image.
Constructor and Description |
---|
BmpFormat(InputStream input)
Initializes a new instance of the
BmpFormat class. |
BmpFormat(String fileName)
Initializes a new instance of the
BmpFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes writable metadata properties associated with the file.
|
BmpHeader |
getHeaderInfo()
Gets the BMP header information.
|
int |
getType()
Gets the type of the loaded file.
|
fromFile, fromFile, fromStream, getByteOrder, getHeight, getWidth
close, dispose, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public BmpFormat(String fileName)
Initializes a new instance of the BmpFormat
class.
fileName
- A string that contains the full name of the file from which to create a BmpFormat
instance.public BmpFormat(InputStream input)
Initializes a new instance of the BmpFormat
class.
input
- A stream that contains the data for this BmpFormat
.public int getType()
Gets the type of the loaded file.
getType
in class FormatBase
public final BmpHeader getHeaderInfo()
Gets the BMP header information.
public void cleanMetadata()
Removes writable metadata properties associated with the file. This feature is not supported for this format.
cleanMetadata
in class ImageFormat
Copyright © 2019. All rights reserved.