File indexing completed on 2024-04-28 04:58:03
0001 /* 0002 icoutils.h - Extract Microsoft Window icons and images using icoutils package 0003 0004 SPDX-FileCopyrightText: 2009-2010 Pali Rohár <pali.rohar@gmail.com> 0005 SPDX-FileCopyrightText: 2013 Andrius da Costa Ribas <andriusmao@gmail.com> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #ifndef ICO_UTILS_H 0011 #define ICO_UTILS_H 0012 0013 #include <QtGlobal> 0014 0015 class QString; 0016 class QIODevice; 0017 class QImage; 0018 class QImageReader; 0019 0020 namespace IcoUtils 0021 { 0022 0023 bool loadIcoImageFromExe(QIODevice *inputDevice, QImage &image, int needWidth = 512, int needHeight = 512); 0024 bool loadIcoImageFromExe(const QString &inputPath, QImage &image, int needWidth = 512, int needHeight = 512); 0025 bool loadIcoImageFromExe(const QString &inputFileName, QIODevice *outputDevice); 0026 0027 bool loadIcoImage(QIODevice *inputDevice, QImage &image, int needWidth = 512, int needHeight = 512); 0028 bool loadIcoImage(const QString &inputFileName, QImage &image, int needWidth = 512, int needHeight = 512); 0029 bool loadIcoImage(QImageReader &reader, QImage &image, int needWidth, int needHeight); 0030 0031 } 0032 0033 #endif // ICO_UTILS_H