![]() |
ezEngine
Release 25.03
|
Public Member Functions | |
virtual ezResult | ReadImageHeader (ezStreamReader &inout_stream, ezImageHeader &ref_header, ezStringView sFileExtension) const override |
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 override |
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 override |
Writes the data to the given stream in this format. Errors are written to the given ezLogInterface. More... | |
virtual bool | CanReadFileType (ezStringView sExtension) const override |
Should return true, if files with the given extension can be read. | |
virtual bool | CanWriteFileType (ezStringView sExtension) const override |
Should return true, if files with the given extension can be written. | |
Additional Inherited Members | |
![]() | |
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) |
|
overridevirtual |
Writes the data to the given stream in this format. Errors are written to the given ezLogInterface.
Implements ezImageFileFormat.