www.pudn.com > ShowImage.rar > Unit1.h


//--------------------------------------------------------------------------- 
 
#ifndef Unit1H 
#define Unit1H 
//--------------------------------------------------------------------------- 
#include  
#include  
#include  
#include  
#include  
#include  
//--------------------------------------------------------------------------- 
class TForm1 : public TForm 
{ 
__published:	// IDE-managed Components 
        TMainMenu *MainMenu1; 
        TMenuItem *N1; 
        TMenuItem *ShowImageFile; 
        TOpenDialog *OpenDialog1; 
        TMenuItem *N3; 
        TMenuItem *Exit; 
        TMenuItem *Resample; 
        TMenuItem *Process; 
        void __fastcall ShowImageFileClick(TObject *Sender); 
        void __fastcall FormDestroy(TObject *Sender); 
        void __fastcall ResampleClick(TObject *Sender); 
private:	// User declarations 
        AnsiString ImageFileName; 
        void __stdcall ByteBinaryImg(); 
        void __stdcall IntegerBinaryImg(int min,int max); 
        void __stdcall RealBinaryImg(float min,float max); 
        void __stdcall BytePackedBinaryImg(); 
        void __stdcall ShowImage(byte* formatedData); 
private: 
        int        m_nCols; 
        int        m_nRows; 
        AnsiString strDataType; 
        AnsiString strTitle; 
        Byte*      pByteData; 
        short*     pShortData; 
        float*     pFloatData; 
public:		// User declarations 
        __fastcall TForm1(TComponent* Owner); 
}; 
//--------------------------------------------------------------------------- 
extern PACKAGE TForm1 *Form1; 
//--------------------------------------------------------------------------- 
#endif