How do add text to a cell that has an image loaded?Is it possible to add text to a cell that has already loaded images?

Thanks!
Automation and ScriptingRe: How do add text to a cell that has an image loaded?...and the orange background is because those images have transparent pixels. Your images probably don't have transparent pixels, so you probably won't see that. Preserving the transparency while adding text is a lot harder.
Re: How do add text to a cell that has an image loaded?Thanks!
I see!

Re: How do add text to a cell that has an image loaded?dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
For( iRow = 1, iRow <= N Rows( dt ), irow += 1,
// open the original
original = dt:picture[iRow];
{xSize, ySize} = original << size;
// use a frame to do the drawing, make the original fit the frame exactly
gb = Graph Box(
<<BACKGROUNDCOLOR></BACKGROUNDCOLOR>
Mug shotsMug shotsMug shots
Re: How do add text to a cell that has an image loaded?Wait. You are using a picture of the whole data table, but I'm pretty sure you want to work on one picture at a time.
Just grab the image from dt:picture[iRow] rather than loading it from a file, then replace it when done. Approximately like this:
original = dt:picture[iRow];
...existing jsl...
dt:picture[iRow] = updated;
Re: How do add text to a cell that has an image loaded?
text size function; 5 points is a little too small for my eyes.text size function; 5 points is a little too small for my eyes.text size function; 5 points is a little too small for my eyes.
Re: How do add text to a cell that has an image loaded?Text( Center Justified, { 50, 10}, "KATIE" )Re: How do add text to a cell that has an image loaded?Thank Craige!
I copied the following JSL, just to achieve the simplest function.
But I still don't know the code.Text is not added where it should be.
Consult experts to help modify, with the simplest code implementation.
Thanks Experts!
dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
dt << delete columns( 3 :: N Col( dt ) );
dt << delete rows( 6 :: N Row( dt ) );
dt << Set Cell Height( 100 );
rp = New Window( "", dt << Get As Report );
original = rp << Get Picture;
{xSize, ySize} = original << size;
gb = Graph Box(
<<BACKGROUNDCOLOR></BACKGROUNDCOLOR>
Re: How do add text to a cell that has an image loaded?Add Text to a Picture
Use a graphics frame box to add text and lines on top of a picture.Use a graphics frame box to add text and lines on top of a picture.Use a graphics frame box to add text and lines on top of a picture.
Re: How do add text to a cell that has an image loaded?JSL can add text to a screenshot and then place it on the image.
Thanks!
dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
rp = New Window( "", dt << Get As Report );
rp << Set Cell Height( 250 );
pic = rp << Get Picture;

Re: How do add text to a cell that has an image loaded?Using proper display functions (h list box, v list box, lineup box...) and display boxes should help you to organize the elements
Re: How do add text to a cell that has an image loaded?If I want to add more than one cell of text, I try to add it left and right.
Can I add text below?It looks like this down here.
Column(dt, "picture") << Set Each Value(
H List Box(align("center"),
Text box(:name),
:picture
) << Get Picture
);
Column(dt, "picture") << Set Each Value(
H List Box(align("center"),
Text box(:sports),
:picture
) << Get Picture
);
Thanks Experts!
Re: How do add text to a cell that has an image loaded?You could use set each value to re-create the image with text
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class Families.jmp");
Column(dt, "picture") << Set Each Value(
H List Box(align("center"),
Text box(:name),
:picture
) << Get Picture
);