cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.
  • See how to access JMP Marketplace - and - find, create & share add-ins to extend your JMP. Watch video.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
lala
Level IX

Can I add text to an image file without using Graph Box()?

How do I add text to an image file using JSL

img = Open( "$SAMPLE_IMAGES/tile.jpg", jpg );
{x, y} = img << size;
img =img << Text( Center Justified, {50, 55}, "test" ); //?

Thanks!

1 REPLY 1
jthi
Super User

Re: Can I add text to an image file without using Graph Box()?

I think you need to either have a display box or directly modify the pixels in the image

Names Default To Here(1);

img = Picture Box(Open("$SAMPLE_IMAGES/tile.jpg", jpg));
img << Add Text Annotation(
	Text("Text"),
	Text Box({0, 10, 200, 77})
);
-Jarmo

Recommended Articles