Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
cgsnapshot-->dialog_pickfile:Bad initial filename
I used the following code to extract my images as tif files directory = 'C:\Users\Images' file_mkdir, directory write_tif, directory + '\' + name, tvrd () I overlaid a grid on the top of the images. When the images exported as tif files the grid was not red any more, it appears in white colour. To keep the colour of the grid I used the cgsnapshot instead directory = 'C:\Users\Images' void = cgsnapshot(/tif, filename= directory + '\' +name) But I got the following system error cgsnapshot-->dialog_pickfile:Bad initial filename: C:\Users\ Can anyone help with this?
Re: cgsnapshot-->dialog_pickfile:Bad initial filename
g.nacarts@gmail.com writes: > I used the following code to extract my images as tif files > > directory = 'C:\Users\Images' > > file_mkdir, directory > > write_tif, directory + '\' + name, tvrd () > > I overlaid a grid on the top of the images. When the images exported as tif files the grid was not red any more, it appears in white colour. To keep the colour of the grid I used the cgsnapshot instead > > directory = 'C:\Users\Images' > void = cgsnapshot(/tif, filename= directory + '\' +name) > > But I got the following system error > > cgsnapshot-->dialog_pickfile:Bad initial filename: C:\Users\ > > Can anyone help with this? Define the "name" variable. Cheers, David -- David Fanning, Ph.D. Fanning Software Consulting, Inc. Coyote's Guide to IDL Programming: http://www.idlcoyote.com/ Sepore ma de ni thue. ("Perhaps thou speakest truth.")
g.nacarts@gmail.com writes: > > I already defined the "name" I'm sure you *thought* you had, but the error message testifies otherwise. :-) Cheers, David -- David Fanning, Ph.D. Fanning Software Consulting, Inc. Coyote's Guide to IDL Programming: http://www.idlcoyote.com/ Sepore ma de ni thue. ("Perhaps thou speakest truth.")