Dialog_Write_Image woes [message #42346] |
Fri, 28 January 2005 11:25 |
btt
Messages: 345 Registered: December 2000
|
Senior Member |
|
|
Hello All,
I have just bumped into something unexpected in DIALOG_WRITE_IMAGE. I can't
access the various output formats if I set the TYPE keyword without setting the
FIX_TYPE keyword.
Here's the description of TYPE in the online help:
Set this keyword to a scalar string containing the format type the "Save as
type" field should begin with. The default is "TIFF". The user can modify the
type unless the FIX_TYPE keyword is set. Valid values are obtained from the list
of supported image types returned from QUERY_IMAGE. The "Save as type" field
will reflect the type of the selected file (if one is selected).
For example...
ok = dialog_write_image(bytarr(50,50), type = "TIFF")
should come up with the TYPE set to TIFF, but the user should still have access
to the other file type (but they don't). Whereas, ...
ok = dialog_write_image(bytarr(50,50), type = "TIFF", FIX_TYPE = 1) should
prevent user access to the other types (and it does).
Is there something here that I am missing?
Thanks!
Ben
IDL> print, !Version
{ ppc darwin unix Mac OS X 6.1.1 Oct 11 2004 32 32}
|
|
|