Hello again!

Problem is solved. I suspect it was a problem with the way I was instantiating 
the baseWriter.

The version shown below is the one that works and differs in that I no longer 
use the default constructor to instantiate the basewriter pointer. Could that 
have been the cause of the problem?

Anyway, I now have blended png's and am very happy :)

Thanks again for a great library!

Cheers

Rich

++++++++++++++++++++++++++++++++++
...
        // read the base file
        string baseFilename = destinationDir + "/"  + base + ".png";
        pngwriter* baseWriter;
        ifstream baseFile(baseFilename.c_str());
        if (baseFile) {
                baseWriter = new pngwriter(1,1,0,(destinationDir + 
"/.tmp.png").c_str());
                baseWriter->readfromfile(baseFilename.c_str());
        } else {
                baseWriter = new pngwriter(w, h, 0, baseFilename.c_str());
                string desc = "Target: " + 
base.substr(base.find_last_of("/")+1);
                baseWriter->settext("GGG Cumulative Topology", "Richard 
Andrews",
                                                desc.c_str(), "BeGA");  
        }
        baseFile.close();
...     

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
http://pngwriter.sourceforge.net/
PNGwriter-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pngwriter-users

Reply via email to