xs2svg, xs2pdf & xs2ps fail to export properly an RGB image displayed by Matplot
Reported by Antoine Monmayrant
BUG DESCRIPTION:
----------------
When an RGB image is displayed using Matplot(), xs2svg, xs2pdf & xs2ps exports do not reproduce the image accurately (sometimes not at all and a white file is generated).
This error is not present in xs2png and I believe not in the other bitmap exports.
It seems to be related to vectorial format exports (svg, pdf, ps).
ERROR LOG:
----------
None, just wrong files being exported.
HOW TO REPRODUCE THE BUG:
-------------------------
img(:,:,1)=[ 1 0 0 ; 0 1 0 ; 0 0 1]*255;
img(:,:,2)=[ 0 0 1 ; 0 1 0 ; 1 0 0]*255;
img(:,:,3)=[ 0 1 0 ; 0 1 0 ; 0 1 0]*255;
h=scf();
Matplot(img);
xs2png(h,"img.png"); // correct
xs2svg(h,"img.svg"); // wrong
xs2pdf(h,"img.pdf"); // wrong again
xs2ps(h,"img.ps"); // wrong again
OTHER INFORMATION:
------------------