Adding FrameBox Content to a Datatable as an image.How do I take the output from Graphbuilder, grab the main FRAMEBOX as an image, resize it and add it to a datatable?
I make my output using Graph builder and then run the following.
obj = GB << Get Scriptable Object;
r= obj << Report;
myImage = r[FrameBox(1)];
myImage << setSize(100, 100);
DT:GFA[1] = myImage; //Row 1 of column 'GFA' (Expression Column) in a Table called 'DT'
I think my issues is the 'image' returned is not an actual image but rather a display box.
Cheers, Troy
Mass CustomizationRe: Adding FrameBox Content to a Datatable as an image.Thanks Craig. I've recently started to pull all my images into tables rather than working with external images from a directory. Makes for much easier application development.
Thanks for putting together a full working solution.
Troy
Re: Adding FrameBox Content to a Datatable as an image.You might, or might not, want to resize it (<
dt=open("$sample_data/big class.jmp");
r = dt<<GRAPH builder=""></GRAPH>In the example, 'r' is the scriptable report object, not the displaybox tree, You can ask the object for the tree with either r<
The captured picture is just the framebox.The captured picture is just the framebox.The captured picture is just the framebox.The captured picture is just the framebox.
Edit: still asleep. You had the variable names correct; I should have used 'obj' rather than 'r' because 'r' should be for the report surface which is the display box tree.