AForge.Imaging.Formats.FITSCodec.Open C# (CSharp) Method

Open() public method

Open specified stream.
Not a FITS image format. Format of the FITS image is not supported. The stream contains invalid (broken) FITS image.
public Open ( Stream stream ) : int
stream Stream Stream to open.
return int
        public int Open( Stream stream )
        {
            // close previous decoding
            Close( );

            this.imageInfo    = ReadHeader( stream );
            this.stream       = stream;
            this.dataPosition = stream.Seek( 0, SeekOrigin.Current );

            return imageInfo.TotalFrames;
        }