Handles reading and writing TIFF image files through the ImageFormatHandler interface.
More...
Handles reading and writing TIFF image files through the ImageFormatHandler interface.
Definition at line 9 of file TIFImageFactory.h.
◆ canRead() [1/2]
| virtual bool TIFImageFactory::canRead |
( |
const File & | file | ) |
const |
|
overridevirtual |
Checks whether the given file can be read as a TIFF.
- Parameters
-
| [in] | file | The file to check. |
- Returns
- True if the file is a readable TIFF.
Implements ImageFormatHandler.
◆ canRead() [2/2]
| virtual bool TIFImageFactory::canRead |
( |
StringView | format | ) |
const |
|
overridevirtual |
Checks whether the given format string is readable.
- Parameters
-
| [in] | format | The format extension to check. |
- Returns
- True if the format can be read.
Implements ImageFormatHandler.
◆ canWrite()
| virtual bool TIFImageFactory::canWrite |
( |
StringView | format | ) |
const |
|
overridevirtual |
Checks whether the given format string is writable.
- Parameters
-
| [in] | format | The format extension to check. |
- Returns
- True if the format can be written.
Implements ImageFormatHandler.
◆ compressionFormat()
Determines the compression format of raw image data.
- Parameters
-
| [in] | data | The raw image data bytes. |
| [in] | size | The number of bytes in the data. |
- Returns
- The compression format identifier.
Reimplemented from ImageFormatHandler.
◆ DefaultFactory()
Returns the singleton default TIFF image factory.
- Returns
- A reference to the default TIFImageFactory.
◆ getCompressed()
Reads the image in its compressed format.
- Parameters
-
| [in] | The | image cache data to populate. |
| [in] | The | target compression format. |
- Returns
- True if the compressed data was successfully read.
Reimplemented from ImageFormatHandler.
◆ getMetaData()
Reads metadata from a TIFF image.
- Parameters
-
| [in] | The | image cache data to populate with metadata. |
- Returns
- True if metadata was successfully read.
Reimplemented from ImageFormatHandler.
◆ getSize()
Reads the image dimensions without fully decoding the image.
- Parameters
-
| [in] | The | image cache data to populate with size info. |
- Returns
- True if the size was successfully read.
Reimplemented from ImageFormatHandler.
◆ getSupportedFormats()
| virtual void TIFImageFactory::getSupportedFormats |
( |
AlocatingAlignedBuffer< FileFormat, 64 > & | formats, |
|
|
bool | is_read ) const |
|
overridevirtual |
Populates the list of supported TIFF file formats.
- Parameters
-
| [in] | formats | The buffer to populate with supported formats. |
| [in] | is_read | Whether to list read formats (true) or write formats (false). |
Implements ImageFormatHandler.
◆ getUncompressed()
Reads and decompresses the image data.
- Parameters
-
| [in] | The | image cache data to populate. |
- Returns
- True if the image was successfully decompressed.
Reimplemented from ImageFormatHandler.
◆ hasTransparency()
Checks whether the TIFF image has an alpha channel.
- Parameters
-
| [in] | The | image cache data to check. |
- Returns
- True if the image has transparency.
Reimplemented from ImageFormatHandler.
◆ id()
| virtual UUID TIFImageFactory::id |
( |
| ) |
const |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: