25 lines
937 B
C++
25 lines
937 B
C++
// *****************************************************************************
|
|
// * This file is part of the FreeFileSync project. It is distributed under *
|
|
// * GNU General Public License: https://www.gnu.org/licenses/gpl-3.0 *
|
|
// * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved *
|
|
// *****************************************************************************
|
|
|
|
#ifndef IMAGE_RESOURCES_H_8740257825342532457
|
|
#define IMAGE_RESOURCES_H_8740257825342532457
|
|
|
|
#include <wx/image.h>
|
|
#include <zen/zstring.h>
|
|
|
|
|
|
namespace zen
|
|
{
|
|
//pass resources .zip file at application startup
|
|
void imageResourcesInit(const Zstring& zipPath); //throw FileError
|
|
void imageResourcesCleanup();
|
|
|
|
const wxImage& loadImage(const std::string& name, int maxWidth /*optional*/, int maxHeight /*optional*/);
|
|
const wxImage& loadImage(const std::string& name, int maxSize = -1);
|
|
}
|
|
|
|
#endif //IMAGE_RESOURCES_H_8740257825342532457
|