Message Boards Message Boards

0
|
6728 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

How do you place numbers in a serialized, animated gif?

Posted 9 years ago

Within a For statement as I am making an animated gif, I have some numbers that I would like to print on the images. Is there a way to do that?

POSTED BY: Douglas Youvan

enter image description here

SetDirectory[NotebookDirectory[]];
im = Import["ExampleData/lena.tif"];
{x, y} = ImageDimensions[im];
data = Show[im, Graphics[Text[Style[ToString[#], Red, 50], {Round[x/2], Round[y/2]}]]] & /@ Range[1, 10];
Export["im.gif", data]
POSTED BY: Nasser M. Abbasi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract