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

// (DO NOT EDIT: machine generated header) 'EnPngGr.pas' rev: 4.00

#ifndef EnPngGrHPP
#define EnPngGrHPP

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

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

namespace Enpnggr
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TPngCompressionLevel { pcLow, pcMedium, pcHigh };
#pragma option pop

class DELPHICLASS TPngGraphic;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION TPngGraphic : public Endigrph::TDibGraphic 
{
	typedef Endigrph::TDibGraphic inherited;
	
protected:
	double FImageGamma;
	Endigrph::TRgb FBackgroundColor;
	Endigrph::TRgb FTransparentColor;
	bool FOverwriteFileBackground;
	TPngCompressionLevel FCompressionLevel;
	bool FSaveProgressive;
	bool FSaveWithBackground;
	bool FSaveTransparent;
	#pragma option push -w-inl
	/* virtual class method */ virtual bool __fastcall CanRead(const Classes::TStream* Stream) { return 
		CanRead(__classid(TPngGraphic), Stream); }
	#pragma option pop
	/*         class method */ static bool __fastcall CanRead(TMetaClass* vmt, const Classes::TStream* 
		Stream);
	
public:
	__fastcall virtual TPngGraphic(void);
	virtual void __fastcall SingleLoadFromStream(const Classes::TStream* Stream, const int ImageToLoad)
		;
	virtual void __fastcall SaveToStream(Classes::TStream* Stream);
	__property double ImageGamma = {read=FImageGamma, write=FImageGamma};
	__property Endigrph::TRgb BackgroundColor = {read=FBackgroundColor, write=FBackgroundColor};
	__property bool OverwriteFileBackground = {read=FOverwriteFileBackground, write=FOverwriteFileBackground
		, nodefault};
	__property TPngCompressionLevel CompressionLevel = {read=FCompressionLevel, write=FCompressionLevel
		, nodefault};
	__property bool SaveProgressive = {read=FSaveProgressive, write=FSaveProgressive, nodefault};
	__property bool SaveTransparent = {read=FSaveTransparent, write=FSaveTransparent, nodefault};
	__property bool SaveWithBackground = {read=FSaveWithBackground, write=FSaveWithBackground, nodefault
		};
	__property Endigrph::TRgb TransparentColor = {read=FTransparentColor, write=FTransparentColor};
public:
		
	#pragma option push -w-inl
	/* TDibGraphic.Destroy */ inline __fastcall virtual ~TPngGraphic(void) { }
	#pragma option pop
	
};

#pragma pack(pop)

class DELPHICLASS EPNGError;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION EPNGError : public Sysutils::Exception 
{
	typedef Sysutils::Exception inherited;
	
public:
	#pragma option push -w-inl
	/* Exception.Create */ inline __fastcall EPNGError(const AnsiString Msg) : Sysutils::Exception(Msg)
		 { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmt */ inline __fastcall EPNGError(const AnsiString Msg, const System::TVarRec * 
		Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateRes */ inline __fastcall EPNGError(int Ident, Extended Dummy) : Sysutils::Exception(
		Ident, Dummy) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmt */ inline __fastcall EPNGError(int Ident, const System::TVarRec * Args, const 
		int Args_Size) : Sysutils::Exception(Ident, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateHelp */ inline __fastcall EPNGError(const AnsiString Msg, int AHelpContext) : Sysutils::Exception(
		Msg, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmtHelp */ inline __fastcall EPNGError(const AnsiString Msg, const System::TVarRec 
		* Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext
		) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResHelp */ inline __fastcall EPNGError(int Ident, int AHelpContext) : Sysutils::Exception(
		Ident, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmtHelp */ inline __fastcall EPNGError(int Ident, const System::TVarRec * Args
		, const int Args_Size, int AHelpContext) : Sysutils::Exception(Ident, Args, Args_Size, AHelpContext
		) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~EPNGError(void) { }
	#pragma option pop
	
};

#pragma pack(pop)

//-- var, const, procedure ---------------------------------------------------
extern PACKAGE bool IgnorePNGWarnings;

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

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