CImageWriterPNG.h 863 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright (C) 2002-2012 Nikolaus Gebhardt
  2. // This file is part of the "Irrlicht Engine".
  3. // For conditions of distribution and use, see copyright notice in irrlicht.h
  4. #ifndef _C_IMAGE_WRITER_PNG_H_INCLUDED__
  5. #define _C_IMAGE_WRITER_PNG_H_INCLUDED__
  6. #include "IrrCompileConfig.h"
  7. #ifdef _IRR_COMPILE_WITH_PNG_WRITER_
  8. #include "IImageWriter.h"
  9. namespace irr
  10. {
  11. namespace video
  12. {
  13. class CImageWriterPNG : public IImageWriter
  14. {
  15. public:
  16. //! constructor
  17. CImageWriterPNG();
  18. //! return true if this writer can write a file with the given extension
  19. virtual bool isAWriteableFileExtension(const io::path& filename) const;
  20. //! write image to file
  21. virtual bool writeImage(io::IWriteFile *file, IImage *image, u32 param) const;
  22. };
  23. } // namespace video
  24. } // namespace irr
  25. #endif // _C_IMAGE_WRITER_PNG_H_INCLUDED__
  26. #endif