pbPlots icon indicating copy to clipboard operation
pbPlots copied to clipboard

Issue with the png file

Open ValentinParavy opened this issue 3 years ago • 0 comments

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 with the same size sucess = DrawScatterPlot(imageRef, 600, 400, &m_space, &m_sol_init, errorMessage);

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.

ValentinParavy avatar Jun 24 '22 11:06 ValentinParavy