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..

Syntax

CImageView:SetFlipFITS( bTrue )

bullet.gif    bTrue is the state of the FITS flipping flag.

Remarks

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.

Example

The following script displays a FITS image "flipped":

V = new_imageview()

-- create a CImageView

I = new_image()

-- create a CImage

I:Open(sPath)

-- load a FITS format image from a file

V:SetFlipFITS(true)

-- set the flag

V:Display(I)

-- display the image

Related Topics

CImageView, CImage class, GetFlipFITS


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.