Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » StreamRaster::LoadAnyFile -- not exist in distribution?
StreamRaster::LoadAnyFile -- not exist in distribution? [message #5626] |
Fri, 06 October 2006 13:04  |
temer
Messages: 5 Registered: October 2006 Location: Kyiv, Ukraine
|
Promising Member |

|
|
I can not find out how to use this function in my code. I've tried to compile U++ example from U++ website and it writes that there is no StreamRaster::LoadAnyFile. Indeed, both "StreamRaster" and "LoadAnyFile" are absent in distribution. How can this happen? How can I use this function?
Thanks.
The example code follows:
#include <CtrlLib/CtrlLib.h>
struct MyApp : public TopWindow {
Image img;
FileSel fs;
void Open();
virtual void Paint(Draw& w);
virtual void LeftDown(Point, dword) { Open(); }
typedef MyApp CLASSNAME;
MyApp();
};
MyApp::MyApp()
{
fs.Type("Image file", "*.bmp;*.png;*.tif;*.tiff;*.jpg;*.jpeg;*.gif");
Sizeable();
}
void MyApp::Paint(Draw& w)
{
w.DrawRect(GetSize(), White);
if(img)
w.DrawImage(0, 0, img);
else
w.DrawText(0, 0, "No image loaded!", Arial(30).Italic());
}
void MyApp::Open()
{
if(fs.ExecuteOpen("Choose the image file to open")) {
img = StreamRaster::LoadFileAny(~fs);
Refresh();
}
}
GUI_APP_MAIN
{
MyApp app;
app.Open();
app.Run();
}
|
|
|
 |
 |
StreamRaster::LoadAnyFile -- not exist in distribution?
By: temer on Fri, 06 October 2006 13:04
|
 |
|
Re: StreamRaster::LoadAnyFile -- not exist in distribution?
By: mirek on Fri, 06 October 2006 16:27
|
 |
|
Re: StreamRaster::LoadAnyFile -- not exist in distribution?
By: temer on Fri, 06 October 2006 18:17
|
 |
|
Re: StreamRaster::LoadAnyFile -- not exist in distribution?
By: mirek on Fri, 06 October 2006 20:33
|
 |
|
Re: StreamRaster::LoadAnyFile -- not exist in distribution?
By: mirek on Fri, 06 October 2006 20:42
|
 |
|
Re: StreamRaster::LoadAnyFile -- not exist in distribution?
By: temer on Mon, 09 October 2006 09:52
|
 |
|
Re: StreamRaster::LoadAnyFile -- not exist in distribution?
By: Larva on Tue, 17 October 2006 15:40
|
 |
|
Re: StreamRaster::LoadAnyFile -- not exist in distribution?
By: mirek on Tue, 17 October 2006 16:14
|
 |
|
Re: StreamRaster::LoadAnyFile -- not exist in distribution?
By: Larva on Tue, 17 October 2006 17:39
|
 |
|
Re: StreamRaster::LoadAnyFile -- not exist in distribution?
By: mirek on Sun, 05 November 2006 09:08
|
Goto Forum:
Current Time: Thu May 01 19:01:15 CEST 2025
Total time taken to generate the page: 0.02777 seconds
|