Skip to content

Commit 34f2ea3

Browse files
committed
gui: add docs for save_animated_gif -key
Signed-off-by: Matt Liberty <[email protected]>
1 parent 51baba2 commit 34f2ea3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/gui/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,19 @@ save_histogram_image
165165

166166
This 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
169174
save_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

src/gui/src/gui.tcl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

148149
proc 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)] } {

0 commit comments

Comments
 (0)