CImageView:SetFlipFITS
The SetFlipFITS method sets the state of the flag that controls whether FITS format images are displayed normal, with row number increasing upward, or flipped, with row number increasing downward..
CImageView:SetFlipFITS( bTrue ) |
bTrue is the state of the FITS flipping flag.
FITS format images are traditionally stored so that they display correctly with the row number increasing upward (see FITS Image Orientation). Most other graphics formats, such as BMP, TIF, and JPG, are displayed with the row number increasing downward. However, FITS format images are sometimes stored in files such that they are to be displayed correctly with row number increasing downward, which is "flipped" relative to the traditional method. Use this method to change the protocol before displaying the image.
If you use the GetFileName function to browse for a file name, the state of the FITS flipping flag appears in the options list at the bottom of the dialog. Using the present method before calling GetFileName changes its options list. Similarly, if you click [OK] to accept the file name, the flag setting is changes globally when the dialog closes.
The following script displays a FITS image "flipped":
|
-- create a CImageView |
|
-- create a CImage |
|
-- load a FITS format image from a file |
|
-- set the flag |
|
-- display the image |
CImageView, CImage class, GetFlipFITS
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.