Home » Community » Newbie corner » StreamRasterEncoder?
StreamRasterEncoder? [message #49298] |
Thu, 18 January 2018 05:29 |
ptkacz
Messages: 89 Registered: March 2017
|
Member |
|
|
Hi Guys,
I've seen examples like,
Image img;
FileSel fs;
...
img = StreamRaster::LoadFileAny(~fs);
to read in an image stored in local storage, etc...
Thinking that StreamRasterEncoder probably works the same, but for encoding and writing out an image file, I've tried the following without success:
String file = "...";
ImageBuffer ib;
... do stuff...
Image img = ib;
StreamRasterEncoder::SaveFile(file.Begin(), img);
What I get is the following compiler error message, "error: cannot call member function 'bool Upp::StreamRasterEncoder::SaveFile(const char*, const Upp::Image&)' without object"
How does one invoke StreamRasterEncoder's SaveFile method?
Peter
[Updated on: Thu, 18 January 2018 05:36] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Wed Apr 24 13:10:42 CEST 2024
Total time taken to generate the page: 0.02136 seconds
|