[Go to Previous] [Go to Next]


Save the Display

captureImage - Writes panel display to a file

Usage: panel[0].captureImage(keywords)
Keywords - required:
file= name of file, file format determined by file extension; valid options: .jpg, .gif, .png, .ps, .pdf, .svg, .kml, and .kmz
Keywords - optional:
height= height of image (default - see Remarks)
width= width of image (default - see Remarks)
quality= quality of jpg file (0.0 to 1.0); default=1.0; not used with other formats
bgtransparent= captures image with transparent background; default=False
formatting= various formatting options to apply to the output image
Remarks:
If captureImage is used to save a panel that was created with openBundle, the sizes default to size of the display window when the bundle was saved. If data was loaded using createLayer, the sizes default to those defined in buildWindow.
Example without formatting:
panel[0].captureImage('C:\\Users\\myuser\\Image.png')
Example with formatting:
myFormatting = [
Matte(
bottom="80",
top="80",
space="100",
),
Colorbar(
display=imLayer,
place="ML,50,0",
anchor="ML",
orientation="left",
interval="10",
width="25",
height="400",
),
ImageOverlay(
image='C:\\Users\\myuser\\logo3.png',
place="UR,-20,10",
anchor="UR",
),
TextOverlay(
text="GOES East Image",
place="LM,0,-40",
anchor="LM",
fontSize="30",
color="black",
),
]
panel[0].captureImage('C:\\Users\\myuser\\formattingExample.gif',formatting=myFormatting)

writeMovie - Writes an image sequence to a movie file (ISL function)

Usage: writeMovie(keywords)
Keywords - required:
file= name of file, file format determined by file extension; valid options: .gif, .mov
Keywords - optional:
resize width= height= size of image (default = height of window)
Example:
writeMovie('C:\\Users\\myuser\\movie.gif',params='resize width=600 height=800')

[Go to Previous] [Go to Next]