File conversion in the background?

Discussion in 'Scripting and Programming' started by David F. Emery, May 1, 2015.

  1. David F. Emery

    David F. Emery Cyanogen Customer

    Joined:
    Mar 30, 2015
    Messages:
    7
    The following code works perfectly to save a .jpg image as a .fit file, but 'OpenFile' causes the image to pop up on the screen. Is there a way to do this conversion entirely in the background?

    Dim Docu As New MaxIm.Document
    Dim FITSfile As String = "c:\FITS\Image.fit"
    Docu.OpenFile("c:\FITS\Image.jpg")
    Docu.SaveFile(FITSfile, mxFITS, True, 1, False)
    Docu.Close()
    Docu = Nothing

    --Dave Emery
     
  2. Doug

    Doug Staff Member

    Joined:
    Sep 25, 2014
    Messages:
    6,963
    Sorry, no.
     

Share This Page