Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » StreamRasterEncoder?
StreamRasterEncoder? [message #49298] Thu, 18 January 2018 05:29 Go to previous message
ptkacz is currently offline  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

 
Read Message
Read Message
Previous Topic: Passing an ArrayCtrl / SqlArray to a function template
Next Topic: Stacked column chart
Goto Forum:
  


Current Time: Fri Apr 26 00:51:28 CEST 2024

Total time taken to generate the page: 0.03739 seconds