// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'EnThbnCr.pas' rev: 5.00

#ifndef EnThbnCrHPP
#define EnThbnCrHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <EnTransf.hpp>	// Pascal unit
#include <EnDiGrph.hpp>	// Pascal unit
#include <EnMisc.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Enthbncr
{
//-- type declarations -------------------------------------------------------
typedef AnsiString __fastcall (__closure *TGetThumbnailFileNameEvent)(const AnsiString FileName);

class DELPHICLASS TThumbnailCreator;
class PASCALIMPLEMENTATION TThumbnailCreator : public System::TObject 
{
	typedef System::TObject inherited;
	
protected:
	int FThumbnailWidth;
	int FThumbnailHeight;
	bool FEnlargeSmallImages;
	Classes::TStringList* FFileNames;
	TGetThumbnailFileNameEvent FOnGetThumbnailFileName;
	AnsiString FThumbnailSuffix;
	AnsiString FOutputDirectory;
	Enmisc::TEnvisionProgressEvent FOnProgress;
	#pragma pack(push, 1)
	Endigrph::TRgb FBackgroundColor;
	#pragma pack(pop)
	
	Entransf::TResizeTransform* FResizeTransform;
	Classes::TStringList* FErrors;
	virtual AnsiString __fastcall GetThumbnailFileName(const AnsiString FileName);
	bool __fastcall GetInterpolated(void);
	void __fastcall SetInterpolated(const bool Interpolated);
	Entransf::TInterpolationFilter __fastcall GetFilter(void);
	void __fastcall SetFilter(const Entransf::TInterpolationFilter Filter);
	bool __fastcall GetOverrideDestFormat(void);
	void __fastcall SetOverrideDestFormat(const bool OverrideDestFormat);
	Enmisc::TImageFormat __fastcall GetDestFormat(void);
	void __fastcall SetDestFormat(const Enmisc::TImageFormat DestFormat);
	int __fastcall GetFileCount(void);
	void __fastcall SetOutputDirectory(const AnsiString Directory);
	
public:
	__fastcall TThumbnailCreator(void);
	__fastcall virtual ~TThumbnailCreator(void);
	void __fastcall Execute(void);
	void __fastcall AddFile(const AnsiString FileName);
	void __fastcall ClearFileNames(void);
	__property int FileCount = {read=GetFileCount, nodefault};
	__property Enmisc::TEnvisionProgressEvent OnProgress = {read=FOnProgress, write=FOnProgress};
	__property AnsiString OutputDirectory = {read=FOutputDirectory, write=SetOutputDirectory};
	__property int ThumbnailWidth = {read=FThumbnailWidth, write=FThumbnailWidth, nodefault};
	__property int ThumbnailHeight = {read=FThumbnailHeight, write=FThumbnailHeight, nodefault};
	__property bool Interpolated = {read=GetInterpolated, write=SetInterpolated, nodefault};
	__property Entransf::TInterpolationFilter Filter = {read=GetFilter, write=SetFilter, nodefault};
	__property bool OverrideDestFormat = {read=GetOverrideDestFormat, write=SetOverrideDestFormat, nodefault
		};
	__property Enmisc::TImageFormat DestFormat = {read=GetDestFormat, write=SetDestFormat, nodefault};
	__property Entransf::TResizeTransform* ResizeTransform = {read=FResizeTransform};
	__property bool EnlargeSmallImages = {read=FEnlargeSmallImages, write=FEnlargeSmallImages, nodefault
		};
	__property Endigrph::TRgb BackgroundColor = {read=FBackgroundColor, write=FBackgroundColor};
	__property AnsiString ThumbnailSuffix = {read=FThumbnailSuffix, write=FThumbnailSuffix};
	__property Classes::TStringList* Errors = {read=FErrors};
	__property TGetThumbnailFileNameEvent OnGetThumbnailFileName = {read=FOnGetThumbnailFileName, write=
		FOnGetThumbnailFileName};
};


//-- var, const, procedure ---------------------------------------------------

}	/* namespace Enthbncr */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Enthbncr;
#endif
#pragma option pop	// -w-
#pragma option pop	// -Vx

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// EnThbnCr
