ezEngine  Milestone 7
ImageFileFormat.h
1 #pragma once
2 
3 #include <CoreUtils/Basics.h>
5 #include <Foundation/Logging/Log.h>
6 
9 class ezImage;
10 class ezStringBuilder;
11 
12 class EZ_COREUTILS_DLL ezImageFileFormatBase : public ezEnumerable<ezImageFileFormatBase>
13 {
14 public:
16  virtual ezResult ReadImage(ezStreamReaderBase& stream, ezImage& image, ezLogInterface* pLog) const = 0;
17 
19  virtual ezResult WriteImage(ezStreamWriterBase& stream, const ezImage& image, ezLogInterface* pLog) const = 0;
20 
22  virtual bool CanReadFileType (const char* szExtension) const = 0;
23 
25  virtual bool CanWriteFileType(const char* szExtension) const = 0;
26 
27 
29 };