Ejemplo n.º 1
0
        public FormAstroDisplay(FitsFile af, double targetRA, double targetDec, int zoom, string targetName)
        {
            InitializeComponent();
            Image fit = AstroDisplay.FitsToTargetImage(af, targetRA, targetDec, zoom);

            fitsPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
            this.Text            = targetName;
            fitsPictureBox.Image = fit;
            return;
        }
Ejemplo n.º 2
0
        public FormAstroDisplay(string fitsFileName, double targetRA, double targetDec, int zoom, string targetName)
        {
            InitializeComponent();
            string[] fileList = { fitsFileName };
            Image[]  fit      = AstroDisplay.FitsFilesToTargetImages(fileList, targetRA, targetDec, zoom);

            fitsPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
            this.Text            = targetName;
            fitsPictureBox.Image = fit[0];
            return;
        }