ezEngine  Release 25.03
ezDdsFileFormat Class Reference
Inheritance diagram for ezDdsFileFormat:

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 Public Member Functions inherited from ezImageFileFormat
static const ezImageFileFormatGetReaderFormat (ezStringView sExtension)
 Returns an ezImageFileFormat that can read the given extension. Returns nullptr if there is no appropriate ezImageFileFormat.
 
static const ezImageFileFormatGetWriterFormat (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)
 

Member Function Documentation

◆ WriteImage()

ezResult ezDdsFileFormat::WriteImage ( ezStreamWriter inout_stream,
const ezImageView image,
ezStringView  sFileExtension 
) const
overridevirtual

Writes the data to the given stream in this format. Errors are written to the given ezLogInterface.

Todo:
sub-image size

Implements ezImageFileFormat.


The documentation for this class was generated from the following files: