[..] La fonction [shq] drawrastershq
Code
int drawraster_shq_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s) : %s\n\n", sclver(), sclsec(), temps_char(0));
shq::beginDrawing(); // <Initializes the "connection"
shq::newFigure("drawraster_shq"); // <Creates a new figure
/*scl::string_c phgname="51150007261_55f0f03ddd_o.jpg.png",
phgpath="./don/kart/"+phgname;*/
scl::string_c phgpath="./prd/doc/htm/img/51150007261_55f0f03ddd_o.jpg.png";
shq::drawRaster(phgpath.c_str(), 0, 0, 1, 1, shq::Params("transform","flipud"));
shq::axisAuto("drawraster_shq");
shq::axisEqual("drawraster_shq");
shq::axisLabels("[px]", "[px]", "drawraster_shq");
shq::saveImage("./srt/drawraster_shq.svg");
shq::endDrawing(); // <Closes the "connection"
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par le 01-04-2024 15:52:20 */
Sortie
[>..\xpl\src\sclgraf.shq.xpl.cpp.drawraster_shq_xpl]
scl-24.03 (gwin64) : 01-04-2024 15:52:20
[<..\xpl\src\sclgraf.shq.xpl.cpp.drawraster_shq_xpl]