pbPlots
pbPlots copied to clipboard
Issue with the png file
Hello,
My code compiles perfectly but no png file is created. Here the method supposed to plot the curve :
`void Sol::draw_sol_init(){
bool sucess;
StringReference *errorMessage = new StringReference();
RGBABitmapImageReference *imageRef = CreateRGBABitmapImageReference();
// m_space, m_sol_init are two vector
if(sucess){
std::vector<double> *pngdata = ConvertToPNG((*imageRef).image);
WriteToFile(pngdata, "sol_init.png");
DeleteImage((*imageRef).image);
std::cout << "test" <<std::endl;
}
else{
std::cout << "nsm" << std::endl;
}
}`
and here my all project Mesh.zip
Thank you in advance for your help.