//---------------------------------------------------------------------------

#ifndef tsplashH
#define tsplashH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <jpeg.hpp>
#include <Graphics.hpp>
//---------------------------------------------------------------------------
class TSplash : public TForm
{
__published:	// IDE-managed Components
        TImage *Image1;
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall FormPaint(TObject *Sender);
        void __fastcall Image1Click(TObject *Sender);
private:	// User declarations
        HRGN WindowRgn;
        Graphics::TBitmap *ImageMap;
        void __fastcall TSplash::GetNextSpan(PByteArray row, int SpanLeft, int *SpanRight, TColor *SpanColor,int y);
        TColor __fastcall TSplash::MaskColor(int x,int y);
public:		// User declarations
        __fastcall TSplash(TComponent* Owner);
        bool pressKeyToClose;
};
//---------------------------------------------------------------------------
extern PACKAGE TSplash *Splash;
//---------------------------------------------------------------------------
#endif
