ImageTIF.h 771 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #ifndef CRYINCLUDE_EDITOR_UTIL_IMAGETIF_H
  9. #define CRYINCLUDE_EDITOR_UTIL_IMAGETIF_H
  10. #pragma once
  11. #include "Util/Image.h"
  12. class SANDBOX_API CImageTIF
  13. {
  14. public:
  15. bool Load(const QString& fileName, CImageEx& outImage);
  16. bool Load(const QString& fileName, CFloatImage& outImage);
  17. bool SaveRAW(const QString& fileName, const void* pData, int width, int height, int bytesPerChannel, int numChannels, bool bFloat, const char* preset);
  18. static const char* GetPreset(const QString& fileName);
  19. };
  20. #endif // CRYINCLUDE_EDITOR_UTIL_IMAGETIF_H