File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -165,13 +165,19 @@ save_histogram_image
165165
166166This command can be used to generate an animated gif.
167167
168+ When used with -start this command returns an integer key that can be
169+ used to distinguish files if multiple are generated. That key can be
170+ provided when using -add or -end. If only a single file is being used
171+ the key can be ignored.
172+
168173``` tcl
169174save_animated_gif
170175 -start|-add|-end
171176 [-resolution microns_per_pixel]
172177 [-area {x0 y0 x1 y1}]
173178 [-width width]
174179 [-delay delay]
180+ [-key key]
175181 [filename]
176182```
177183
@@ -187,6 +193,7 @@ save_animated_gif
187193| ` -resolution ` | resolution in microns per pixel to use when saving the image, default will match what the GUI has selected.|
188194| ` -width ` | width of the output image in pixels, default will be computed from the resolution. Cannot be used with `` -resolution `` .|
189195| ` -delay ` | delay between frames in the GIF.|
196+ | ` -key ` | used to distinguish multiple GIF files (returned by -add).|
190197
191198### Select Objects
192199
Original file line number Diff line number Diff line change @@ -142,12 +142,13 @@ sta::define_cmd_args "save_animated_gif" {-start|-add|-end \
142142 [-width width] \
143143 [-resolution microns_per_pixel] \
144144 [-delay delay] \
145+ [-key key] \
145146 [path]
146147}
147148
148149proc save_animated_gif { args } {
149150 sta::parse_key_args " save_animated_gif" args \
150- keys {-area -width -resolution -delay} flags {-start -end -add}
151+ keys {-area -width -resolution -delay -key } flags {-start -end -add}
151152
152153 set resolution 0
153154 if { [info exists keys(-resolution)] } {
You can’t perform that action at this time.
0 commit comments