File indexing completed on 2025-01-19 03:51:01
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2019-04-19 0007 * Description : Magick loader for DImg framework. 0008 * 0009 * SPDX-FileCopyrightText: 2019-2023 by Caulier Gilles <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_DIMG_IMAGEMAGICK_LOADER_H 0016 #define DIGIKAM_DIMG_IMAGEMAGICK_LOADER_H 0017 0018 // Local includes 0019 0020 #include "dimg.h" 0021 #include "dimgloader.h" 0022 #include "digikam_config.h" 0023 0024 using namespace Digikam; 0025 0026 namespace DigikamImageMagickDImgPlugin 0027 { 0028 0029 class DImgImageMagickLoader : public DImgLoader 0030 { 0031 public: 0032 0033 explicit DImgImageMagickLoader(DImg* const image); 0034 ~DImgImageMagickLoader() override; 0035 0036 bool load(const QString& filePath, DImgLoaderObserver* const observer) override; 0037 bool save(const QString& filePath, DImgLoaderObserver* const observer) override; 0038 0039 bool hasAlpha() const override; 0040 bool sixteenBit() const override; 0041 bool isReadOnly() const override; 0042 0043 private: 0044 0045 bool m_sixteenBit; 0046 bool m_hasAlpha; 0047 }; 0048 0049 } // namespace DigikamImageMagickDImgPlugin 0050 0051 #endif // DIGIKAM_DIMG_IMAGEMAGICK_LOADER_H