¿Alguien sabe cómo cargar un archivo de imagen (.jpg) en Graph Builder usando JSL? En una sesión interactiva que puede arrastrar y soltar, simplemente no me queda claro cómo JSL lo hace. Parece que hay algún tipo de requisito de Char To Blob, pero he intentado muchas cosas sin éxito.
Prueba esto. No es el código más bonito, pero hace el trabajo. No estoy seguro si se puede hacer más simple.
Don
tblRef = Open("$Sample_Data/big class.jmp");
pathToImage = ""; //Put path to image here
gbPlt = Graph Builder(
Show Control Panel( 0 ),
Variables( X( :age ), Y( :height ), Overlay( :sex ) ),
Elements( Line( X, Y, Legend( 3 ) ), Points( X, Y, Legend( 4 ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
4,
Base( 0, 0, 0 ),
Base( 1, 0, 1 ),
Properties( 0, {Marker( "Plus" )} ),
Properties( 1, {Marker( "Square" )} )
)}
)
)
);
Report(gbPlt)[Frame Box(1)] << Add Image(Open(pathToImage));
iSeg = Report(gbPlt)[Frame Box(1)] << Find Seg(Pict Seg(1));
iSeg << Fill Graph;