mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-06 01:54:56 -06:00
17 lines
303 B
C++
17 lines
303 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
#include <plugin/jpg/jpg.h>
|
|
|
|
using namespace Upp;
|
|
|
|
static void sLoadImage(const String& path, Image& result)
|
|
{
|
|
result = StreamRaster::LoadFileAny(path);
|
|
}
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
FileSel fs;
|
|
fs.AllFilesType();
|
|
fs.WhenIconLazy = sLoadImage;
|
|
fs.ExecuteOpen();
|
|
}
|