![]() |
ezEngine Release 25.08
|
Public Member Functions | |
virtual ezResult | ReadImageHeader (ezStreamReader &inout_stream, ezImageHeader &ref_header, ezStringView sFileExtension) const =0 |
Reads only the header information for an image and ignores the data. Much faster than reading the entire image, if the pixel data is not needed. | |
virtual ezResult | ReadImage (ezStreamReader &inout_stream, ezImage &ref_image, ezStringView sFileExtension) const =0 |
Reads the data from the given stream and creates the image from it. Errors are written to the given ezLogInterface. | |
virtual ezResult | WriteImage (ezStreamWriter &inout_stream, const ezImageView &image, ezStringView sFileExtension) const =0 |
Writes the data to the given stream in this format. Errors are written to the given ezLogInterface. | |
virtual bool | CanReadFileType (ezStringView sExtension) const =0 |
Should return true, if files with the given extension can be read. | |
virtual bool | CanWriteFileType (ezStringView sExtension) const =0 |
Should return true, if files with the given extension can be written. | |
Static Public Member Functions | |
static const ezImageFileFormat * | GetReaderFormat (ezStringView sExtension) |
Returns an ezImageFileFormat that can read the given extension. Returns nullptr if there is no appropriate ezImageFileFormat. | |
static const ezImageFileFormat * | GetWriterFormat (ezStringView sExtension) |
Returns an ezImageFileFormat that can write the given extension. Returns nullptr if there is no appropriate ezImageFileFormat. | |
static ezResult | ReadImageHeader (ezStringView sFileName, ezImageHeader &ref_header) |
|
pure virtual |
Should return true, if files with the given extension can be read.
Implemented in ezBmpFileFormat, ezDdsFileFormat, ezStbImageFileFormats, and ezTgaFileFormat.
|
pure virtual |
Should return true, if files with the given extension can be written.
Implemented in ezBmpFileFormat, ezDdsFileFormat, ezStbImageFileFormats, and ezTgaFileFormat.
|
pure virtual |
Reads the data from the given stream and creates the image from it. Errors are written to the given ezLogInterface.
Implemented in ezBmpFileFormat, ezDdsFileFormat, ezStbImageFileFormats, and ezTgaFileFormat.
|
pure virtual |
Reads only the header information for an image and ignores the data. Much faster than reading the entire image, if the pixel data is not needed.
Implemented in ezBmpFileFormat, ezDdsFileFormat, ezStbImageFileFormats, and ezTgaFileFormat.
|
pure virtual |
Writes the data to the given stream in this format. Errors are written to the given ezLogInterface.
Implemented in ezBmpFileFormat, ezDdsFileFormat, ezStbImageFileFormats, and ezTgaFileFormat.