// CodeGear C++Builder
// Copyright (c) 1995, 2015 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'imageenproc.pas' rev: 30.00 (Windows)

#ifndef ImageenprocHPP
#define ImageenprocHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member 
#pragma pack(push,8)
#include <System.hpp>
#include <SysInit.hpp>
#include <Winapi.Windows.hpp>
#include <Winapi.Messages.hpp>
#include <System.SysUtils.hpp>
#include <System.Classes.hpp>
#include <Vcl.Graphics.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.Forms.hpp>
#include <ieview.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <hyiedefs.hpp>
#include <hyieutils.hpp>
#include <iefft.hpp>
#include <iexTransitions.hpp>
#include <System.UITypes.hpp>
#include <System.Types.hpp>

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

namespace Imageenproc
{
//-- forward type declarations -----------------------------------------------
struct TGraphFilter;
class DELPHICLASS EFilterInvalid;
struct THistogramItem;
class DELPHICLASS TIPDialogParams;
class DELPHICLASS TImageEnProc;
struct TIEPrecalcTransform;
//-- type declarations -------------------------------------------------------
struct DECLSPEC_DRECORD TGraphFilter
{
public:
	System::StaticArray<System::StaticArray<int, 3>, 3> Values;
	int Divisor;
};


typedef TGraphFilter *PIEGraphFilter;

#pragma pack(push,4)
class PASCALIMPLEMENTATION EFilterInvalid : public System::Sysutils::Exception
{
	typedef System::Sysutils::Exception inherited;
	
public:
	/* Exception.Create */ inline __fastcall EFilterInvalid(const System::UnicodeString Msg) : System::Sysutils::Exception(Msg) { }
	/* Exception.CreateFmt */ inline __fastcall EFilterInvalid(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_High) : System::Sysutils::Exception(Msg, Args, Args_High) { }
	/* Exception.CreateRes */ inline __fastcall EFilterInvalid(NativeUInt Ident)/* overload */ : System::Sysutils::Exception(Ident) { }
	/* Exception.CreateRes */ inline __fastcall EFilterInvalid(System::PResStringRec ResStringRec)/* overload */ : System::Sysutils::Exception(ResStringRec) { }
	/* Exception.CreateResFmt */ inline __fastcall EFilterInvalid(NativeUInt Ident, System::TVarRec const *Args, const int Args_High)/* overload */ : System::Sysutils::Exception(Ident, Args, Args_High) { }
	/* Exception.CreateResFmt */ inline __fastcall EFilterInvalid(System::PResStringRec ResStringRec, System::TVarRec const *Args, const int Args_High)/* overload */ : System::Sysutils::Exception(ResStringRec, Args, Args_High) { }
	/* Exception.CreateHelp */ inline __fastcall EFilterInvalid(const System::UnicodeString Msg, int AHelpContext) : System::Sysutils::Exception(Msg, AHelpContext) { }
	/* Exception.CreateFmtHelp */ inline __fastcall EFilterInvalid(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_High, int AHelpContext) : System::Sysutils::Exception(Msg, Args, Args_High, AHelpContext) { }
	/* Exception.CreateResHelp */ inline __fastcall EFilterInvalid(NativeUInt Ident, int AHelpContext)/* overload */ : System::Sysutils::Exception(Ident, AHelpContext) { }
	/* Exception.CreateResHelp */ inline __fastcall EFilterInvalid(System::PResStringRec ResStringRec, int AHelpContext)/* overload */ : System::Sysutils::Exception(ResStringRec, AHelpContext) { }
	/* Exception.CreateResFmtHelp */ inline __fastcall EFilterInvalid(System::PResStringRec ResStringRec, System::TVarRec const *Args, const int Args_High, int AHelpContext)/* overload */ : System::Sysutils::Exception(ResStringRec, Args, Args_High, AHelpContext) { }
	/* Exception.CreateResFmtHelp */ inline __fastcall EFilterInvalid(NativeUInt Ident, System::TVarRec const *Args, const int Args_High, int AHelpContext)/* overload */ : System::Sysutils::Exception(Ident, Args, Args_High, AHelpContext) { }
	/* Exception.Destroy */ inline __fastcall virtual ~EFilterInvalid(void) { }
	
};

#pragma pack(pop)

struct DECLSPEC_DRECORD THistogramItem
{
public:
	unsigned R;
	unsigned G;
	unsigned B;
	unsigned Gray;
};


typedef THistogramItem *PHistogramItem;

typedef System::StaticArray<THistogramItem, 256> THistogram;

typedef THistogram *PHistogram;

typedef System::DynamicArray<THistogramItem> TIEHistogram;

enum DECLSPEC_DENUM Imageenproc__2 : unsigned char { peAll, peContrast, peHSV, peHSL, peRGB, peUserFilt, peEqualize, peBumpMap, peLens, peWave, peMorph, peRotate, peFFT, peGamma, peSharpen, peResize, peSoftShadow };

typedef System::Set<Imageenproc__2, Imageenproc__2::peAll, Imageenproc__2::peSoftShadow> TPreviewEffects;

enum DECLSPEC_DENUM TPRPreviewsParamsItems : unsigned char { prppDefaultLockPreview, prppShowResetButton, prppHardReset, prppResetSelectedTab };

typedef System::Set<TPRPreviewsParamsItems, TPRPreviewsParamsItems::prppDefaultLockPreview, TPRPreviewsParamsItems::prppResetSelectedTab> TPRPreviewsParams;

class PASCALIMPLEMENTATION TIPDialogParams : public System::TObject
{
	typedef System::TObject inherited;
	
private:
	int fFFT_Left;
	int fFFT_Top;
	int fFFT_Right;
	int fFFT_Bottom;
	void __fastcall SetFFT_Left(int v);
	void __fastcall SetFFT_Top(int v);
	void __fastcall SetFFT_Right(int v);
	void __fastcall SetFFT_Bottom(int v);
	
public:
	int DialogWidth;
	int DialogHeight;
	int CONTRAST_Contrast;
	int CONTRAST_Brightness;
	int HSV_H;
	int HSV_S;
	int HSV_V;
	int HSL_H;
	int HSL_S;
	int HSL_L;
	int RGB_R;
	int RGB_G;
	int RGB_B;
	TGraphFilter USERFILTER_Values;
	Hyiedefs::TRGB EQUALIZATION_ThresholdDown;
	Hyiedefs::TRGB EQUALIZATION_ThresholdUp;
	Hyiedefs::TRGB EQUALIZATION_EqDown;
	Hyiedefs::TRGB EQUALIZATION_EqUp;
	bool EQUALIZATION_EqualizeButton;
	int BUMPMAP_Left;
	int BUMPMAP_Top;
	int BUMPMAP_Width;
	int BUMPMAP_Height;
	Hyiedefs::TRGB BUMPMAP_Col;
	int BUMPMAP_Src;
	bool BUMPMAP_Auto;
	int LENS_Left;
	int LENS_Top;
	int LENS_Width;
	int LENS_Height;
	double LENS_Ref;
	bool LENS_Auto;
	int WAVE_Amplitude;
	int WAVE_WaveLength;
	int WAVE_Phase;
	bool WAVE_Reflect;
	int MORPH_Filter;
	int MORPH_WinSize;
	double ROTATE_Angle;
	bool FLIP_Horz;
	bool FLIP_Vert;
	double GAMMACORRECTION_Value;
	int SHARPEN_Sharpen;
	int SHARPEN_Size;
	bool FFT_GrayScale;
	System::Classes::TMemoryStream* FFT_Selection;
	int Resize_Percent;
	int Shadow_Radius;
	int Shadow_Offset;
	__property int FFT_Left = {read=fFFT_Left, write=SetFFT_Left, nodefault};
	__property int FFT_Top = {read=fFFT_Top, write=SetFFT_Top, nodefault};
	__property int FFT_Right = {read=fFFT_Right, write=SetFFT_Right, nodefault};
	__property int FFT_Bottom = {read=fFFT_Bottom, write=SetFFT_Bottom, nodefault};
	__fastcall TIPDialogParams(void);
	__fastcall virtual ~TIPDialogParams(void);
	void __fastcall SaveToFile(const System::UnicodeString FileName);
	void __fastcall LoadFromFile(const System::UnicodeString FileName);
	void __fastcall SaveToStream(System::Classes::TStream* Stream);
	void __fastcall LoadFromStream(System::Classes::TStream* Stream);
	void __fastcall SetProperty(System::UnicodeString Prop, System::UnicodeString Value);
	System::UnicodeString __fastcall GetProperty(const System::UnicodeString Prop);
	void __fastcall SetDefaultParams(void);
};


enum DECLSPEC_DENUM TIEEncryptionAlgorithm : unsigned char { ieeaTEA, ieeaTEA2 };

typedef int TIEFilterPresets;

typedef void __fastcall (__closure *TIEPreviewEvent)(System::TObject* Sender, Vcl::Forms::TForm* PreviewForm);

enum DECLSPEC_DENUM TIEChannel : unsigned char { iecRed, iecGreen, iecBlue };

typedef System::Set<TIEChannel, TIEChannel::iecRed, TIEChannel::iecBlue> TIEChannels;

enum DECLSPEC_DENUM TIEUndoSource : unsigned char { ieuUnknown, ieuImage, ieuSelection, ieuObject, ieuLayer, ieuFullLayer, ieuObjectsAndLayers };

enum DECLSPEC_DENUM TIEMedFilType : unsigned char { mfMedianFilter, mfSharpen, mfEdgeExtract };

typedef void __fastcall (__closure *TIESaveUndoEvent)(System::TObject* Sender, TIEUndoSource Source);

typedef void __fastcall (__closure *TIEOnUndoRedoEvent)(System::TObject* Sender, bool bIsUndo, TIEUndoSource Source, System::TObject* UndoObj, int iIndex, bool &bHandled);

enum DECLSPEC_DENUM TIEDeinterlaceMode : unsigned char { iedDiscard, iedIntelliMerge };

enum DECLSPEC_DENUM TIEThreshMode : unsigned char { ietMean, ietMedian, ietMeanMinMax };

enum DECLSPEC_DENUM TIECmpMode : unsigned char { iecmpRMSE, iecmpHamming, iecmpCovariance };

enum DECLSPEC_DENUM TIEPaletteType : unsigned char { ieptMedianCut, ieptFixedBW, ieptFixedHalftone8, ieptFixedHalftone27, ieptFixedHalftone64, ieptFixedHalftone125, ieptFixedWebPalette, ieptFixedHalftone252, ieptFixedHalftone256, ieptFixedGray4, ieptFixedGray16, ieptFixedGray256 };

enum DECLSPEC_DENUM TIEDitherType : unsigned char { iedtSolid, iedtOrdered4x4, iedtOrdered8x8, iedtOrdered16x16, iedtSpiral4x4, iedtSpiral8x8, iedtDualSpiral4x4, iedtDualSpiral8x8, iedtErrorDiffusion };

class PASCALIMPLEMENTATION TImageEnProc : public System::Classes::TComponent
{
	typedef System::Classes::TComponent inherited;
	
private:
	bool fAutoUndo;
	Ieview::TIEView* fImageEnView;
	void *fImageEnViewBitmapChangeHandle;
	System::Uitypes::TColor fBackground;
	TPRPreviewsParams fPreviewsParams;
	Vcl::Graphics::TFont* fPreviewFont;
	bool fPreviewFontEnabled;
	TIEPreviewEvent fOnPreview;
	Vcl::Extctrls::TImage* fTImage;
	System::UnicodeString fFiltersInitialDir;
	Hyieutils::TIEBitmap* fIEBitmap;
	bool fIEBitmapCreated;
	Hyieutils::TIEBitmap* fTransitionFullBitmap;
	TIPDialogParams* fIPDialogParams;
	System::Classes::TStringList* fPreviewsLog;
	bool fAutoConvertFormat;
	Iextransitions::TIETransitionEffects* fTransition;
	void __fastcall SetAttachedBitmap(Vcl::Graphics::TBitmap* atBitmap);
	void __fastcall SetAttachedImageEn(Ieview::TIEView* atImageEn);
	System::Uitypes::TColor __fastcall GetReBackground(void);
	void __fastcall SetReBackground(System::Uitypes::TColor v);
	void __fastcall SetPreviewFont(Vcl::Graphics::TFont* f);
	void __fastcall SetPreviewFontEnabled(bool Value);
	void __fastcall SetTImage(Vcl::Extctrls::TImage* v);
	void __fastcall SetPRPreviewParams(TPRPreviewsParams v);
	TPRPreviewsParams __fastcall GetPRPreviewParams(void);
	void __fastcall SetUndoCaptions(int index, const System::UnicodeString Value);
	void __fastcall SetUndoLimit(int v);
	System::UnicodeString __fastcall GetImageEnVersion(void);
	void __fastcall SetImageEnVersion(System::UnicodeString Value);
	
protected:
	System::Classes::TList* fUndoList;
	System::Classes::TList* fUndoSource;
	Hyieutils::TIELocation fUndoLocation;
	int fUndoLimit;
	System::Classes::TStringList* fUndoCaptions;
	System::Classes::TList* fRedoList;
	System::Classes::TList* fRedoSource;
	System::Classes::TStringList* fRedoCaptions;
	Vcl::Graphics::TBitmap* fBitmap;
	Hyiedefs::TIEProgressEvent fOnProgress;
	System::Classes::TNotifyEvent fOnFinishWork;
	TIESaveUndoEvent fOnSaveUndo;
	virtual bool __fastcall GetCanUndo(void);
	virtual bool __fastcall GetCanRedo(void);
	virtual int __fastcall GetUndoCount(void);
	virtual int __fastcall GetRedoCount(void);
	virtual System::UnicodeString __fastcall GetRedoCaptions(int index);
	virtual System::UnicodeString __fastcall GetUndoCaptions(int index);
	virtual void __fastcall Notification(System::Classes::TComponent* AComponent, System::Classes::TOperation Operation);
	void __fastcall OnBitmapChange(System::TObject* Sender, bool destroying);
	void __fastcall SetIEBitmap(Hyieutils::TIEBitmap* bmp);
	void __fastcall SetAttachedIEBitmap(Hyieutils::TIEBitmap* bmp);
	bool __fastcall MakeConsistentBitmap(Hyieutils::TIEPixelFormatSet allowedFormats);
	virtual void __fastcall DoFinishWork(void);
	int __fastcall GetDPIX(void);
	int __fastcall GetDPIY(void);
	
public:
	int fMViewIndex;
	TIEOnUndoRedoEvent fOnUndoRedoEvent;
	__fastcall virtual TImageEnProc(System::Classes::TComponent* Owner)/* overload */;
	__fastcall TImageEnProc(Hyieutils::TIEBitmap* Bitmap)/* overload */;
	__fastcall TImageEnProc(Vcl::Graphics::TBitmap* Bitmap)/* overload */;
	__fastcall virtual ~TImageEnProc(void);
	__property Vcl::Graphics::TBitmap* AttachedBitmap = {read=fBitmap, write=SetAttachedBitmap};
	__property Hyieutils::TIEBitmap* AttachedIEBitmap = {read=fIEBitmap, write=SetAttachedIEBitmap};
	void __fastcall Update(void);
	__property System::UnicodeString FiltersInitialDir = {read=fFiltersInitialDir, write=fFiltersInitialDir};
	void __fastcall CheckLegacyBitmap(Hyieutils::TIEPixelFormat PixelFormat);
	bool __fastcall BeginImageProcessing(Hyieutils::TIEPixelFormatSet allowedFormats, int &x1, int &y1, int &x2, int &y2, const System::UnicodeString OpName, Hyieutils::TIEBitmap* &ProcBitmap, Hyieutils::TIEMask* &mask);
	void __fastcall EndImageProcessing(Hyieutils::TIEBitmap* ProcBitmap, Hyieutils::TIEMask* mask);
	bool __fastcall BeginImageAnalysis(Hyieutils::TIEPixelFormatSet allowedFormats, int &x1, int &y1, int &x2, int &y2, Hyieutils::TIEBitmap* &ProcBitmap, Hyieutils::TIEMask* &mask);
	void __fastcall EndImageAnalysis(Hyieutils::TIEBitmap* ProcBitmap);
	void __fastcall Negative(void);
	void __fastcall HSLvar(int oHue, int oSat, int oLum);
	void __fastcall HSVvar(int oHue, int oSat, int oVal);
	void __fastcall IntensityRGBAll(int r, int g, int b);
	void __fastcall Intensity(int LoLimit, int HiLimit, int Change, bool UseAverageRGB, bool DoRed, bool DoGreen, bool DoBlue);
	void __fastcall Contrast(double vv = 2.000000E+00);
	void __fastcall ApplyFilter(const TGraphFilter &filter);
	void __fastcall ApplyFilterPreset(int filter);
	void __fastcall Convolve(double *Kernel, const int Kernel_High, int KernelWidth, int KernelHeight, double Factor);
	void __fastcall ConvertToGray(void);
	void __fastcall ConvertToSepia(int Depth = 0x14);
	void __fastcall CastColorRange(Hyiedefs::TRGB BeginColor, Hyiedefs::TRGB EndColor, Hyiedefs::TRGB CastColor);
	int __fastcall MatchHSVRange(int HueBegin, int HueEnd, int SatBegin, int SatEnd, int ValBegin, int ValEnd, bool ColorizeMatched, Hyiedefs::TRGB MatchColor, bool ColorizeNonMatched, Hyiedefs::TRGB NonMatchColor);
	void __fastcall CastColor(int x, int y, Hyiedefs::TRGB newColor, int tolerance);
	void __fastcall CastAlpha(int x, int y, int newAlpha, int tolerance);
	void __fastcall Flip(Hyiedefs::TFlipDir dir);
	void __fastcall RemoveRedEyes(void);
	void __fastcall ConvertToBW_FloydSteinberg(void);
	void __fastcall ConvertToBWLocalThreshold(int WinSize = 0x4, TIEThreshMode Mode = (TIEThreshMode)(0x0), int Offset = 0x4);
	void __fastcall ImageResize(int newWidth, int newHeight, Hyieutils::TIEHAlign HorizAlign = (Hyieutils::TIEHAlign)(0x0), Hyieutils::TIEVAlign VertAlign = (Hyieutils::TIEVAlign)(0x0), int FillAlpha = 0xff);
	void __fastcall Resample(int NewWidth, int NewHeight, Hyiedefs::TResampleFilter FilterType = (Hyiedefs::TResampleFilter)(0x0), bool bMaintainAspectRatio = false);
	void __fastcall Rotate(double Angle, Hyiedefs::TIEAntialiasMode AntiAliasMode = (Hyiedefs::TIEAntialiasMode)(0x1), System::Uitypes::TColor BackgroundColor = (System::Uitypes::TColor)(0xffffffff))/* overload */;
	void __fastcall RotateAndCrop(double Angle, Hyiedefs::TIEAntialiasMode AntiAliasMode = (Hyiedefs::TIEAntialiasMode)(0x1))/* overload */;
	void __fastcall Rotate _DEPRECATED_ATTRIBUTE0 (double Angle, bool AntiAlias, Hyiedefs::TIEAntialiasMode AntiAliasMode = (Hyiedefs::TIEAntialiasMode)(0x1), System::Uitypes::TColor BackgroundColor = (System::Uitypes::TColor)(0xffffffff))/* overload */;
	void __fastcall RotateAndCrop _DEPRECATED_ATTRIBUTE0 (double Angle, bool AntiAlias, Hyiedefs::TIEAntialiasMode AntiAliasMode = (Hyiedefs::TIEAntialiasMode)(0x1))/* overload */;
	void __fastcall ConvertToBWThreshold(int Threshold = 0xffffffff);
	void __fastcall EdgeDetect_ShenCastan(double Ratio = 9.900000E-01, double Smooth = 9.000000E-01, int WindowSize = 0x7, int ThinFactor = 0x0, bool DoHysteresis = true);
	void __fastcall EdgeDetect_Sobel(void);
	void __fastcall RemoveIsolatedPixels(int NoiseColor = 0x1, int PixelsCount = 0x2);
	void __fastcall RemoveNoise(int Iterations = 0x2, bool InvertImage = false);
	void __fastcall PaintMark(int Frequency, Hyiedefs::TRGB Color);
	void __fastcall GammaCorrect(double Gamma, TIEChannels Channel = (TIEChannels() << TIEChannel::iecRed << TIEChannel::iecGreen << TIEChannel::iecBlue ));
	void __fastcall PaintPenMarker(int x, int y, int Width = 0x14, System::Uitypes::TColor Color = (System::Uitypes::TColor)(0xffff), System::Uitypes::TColor BackgroundColor = (System::Uitypes::TColor)(0xffffff), int Tolerance = 0xa);
	void __fastcall ConvertToPalette(int NumColors, void * Palette, Hyieutils::TIEDitherMethod DitherMethod = (Hyieutils::TIEDitherMethod)(0x0));
	void __fastcall ConvertTo(int NumColors, Hyieutils::TIEDitherMethod DitherMethod = (Hyieutils::TIEDitherMethod)(0x0))/* overload */;
	bool __fastcall ConvertTo(Hyieutils::TIEPixelFormat PixelFormat, TIEPaletteType PaletteType = (TIEPaletteType)(0x0), TIEDitherType DitherType = (TIEDitherType)(0x0), bool CheckParametersOnly = false)/* overload */;
	bool __fastcall DoPreviews(TPreviewEffects pe = (TPreviewEffects() << Imageenproc__2::peAll ), bool IsResizeable = true, int FormWidth = 0xffffffff, int FormHeight = 0xffffffff, int FormLeft = 0xffffffff, int FormTop = 0xffffffff);
	__property TIPDialogParams* IPDialogParams = {read=fIPDialogParams};
	__property System::Classes::TStringList* PreviewsLog = {read=fPreviewsLog};
	void __fastcall AddSoftShadow(double radius = 4.000000E+00, int OffSetX = 0x4, int OffSetY = 0x4, bool AdaptSize = true, System::Uitypes::TColor ShadowColor = (System::Uitypes::TColor)(0x0), int Intensity = 0x64);
	void __fastcall AddInnerShadow(double radius = 4.000000E+00, int OffSetX = 0x0, int OffSetY = 0x0, System::Uitypes::TColor ShadowColor = (System::Uitypes::TColor)(0x0));
	void __fastcall MedianFilter(int WindowX = 0x5, int WindowY = 0x5, int Brightness = 0x32, int Contrast = 0x32, int Multiplier = 0x1, int Threshold = 0x32, TIEMedFilType MedianOp = (TIEMedFilType)(0x0));
	void __fastcall WallisFilter(int WinWidth = 0x2, int WinHeight = 0x2, int Mean = 0x32, int StDev = 0x32, int InGain = 0x32, int Edge = 0xa, int Limit = 0x32, bool Thresholding = false);
	void __fastcall Sharpen(int Intensity = 0xa, int Neighbourhood = 0x4);
	void __fastcall UnsharpMask(double Radius = 4.000000E+00, double Amount = 1.000000E+00, double Threshold = 5.000000E-02);
	void __fastcall Clear(void);
	void __fastcall ClearSel(void);
	void __fastcall Merge(Vcl::Graphics::TBitmap* DBitmap, int pcf = 0x32);
	void __fastcall MergeIEBitmap(Hyieutils::TIEBitmap* DBitmap, int pcf = 0x32);
	void __fastcall Threshold(Hyiedefs::TRGB DownLimit, Hyiedefs::TRGB UpLimit, Hyiedefs::TRGB DownVal, Hyiedefs::TRGB UpVal);
	void __fastcall Threshold2(int LoThreshold, int HiThreshold, bool Red, bool Green, bool Blue);
	void __fastcall HistEqualize(Hyiedefs::TRGB LoThresh, Hyiedefs::TRGB HiThresh);
	void __fastcall HistAutoEqualize(void);
	void __fastcall CropSel(bool TransparencyOnly = false);
	void __fastcall BumpMapping(int LightX, int LightY, int LampX, int LampY, int pcf, Hyiedefs::TRGB Color);
	void __fastcall Lens(int cx, int cy, int Width, int Height, double Refraction);
	void __fastcall Wave(int amplitude, int wavelength, int phase, bool reflective);
	void __fastcall ConvertToBWOrdered(void);
	void __fastcall ConvertTo24Bit(void);
	int __fastcall WriteHiddenText(System::AnsiString text);
	int __fastcall WriteHiddenData(char * data, int count);
	void __fastcall Maximum(int WindowSize);
	void __fastcall Minimum(int WindowSize);
	void __fastcall Opening(int WindowSize);
	void __fastcall Closing(int WindowSize);
	void __fastcall Fill(Hyiedefs::TRGB FillColor)/* overload */;
	void __fastcall Fill(System::Uitypes::TColor FillColor)/* overload */;
	void __fastcall Blur(double radius);
	void __fastcall MotionBlur(double angle, int radius = 0x8, int sigma = 0x7);
	void __fastcall Random(double mean = 5.000000E-01, double stdDev = 1.230000E-01);
	void __fastcall SetTransparentColors(Hyiedefs::TRGB MinColor, Hyiedefs::TRGB MaxColor, int Alpha = 0x0);
	void __fastcall ResampleTo(Hyieutils::TIEBitmap* Target, int TargetWidth, int TargetHeight, Hyiedefs::TResampleFilter FilterType, bool bMaintainAspectRatio = false);
	void __fastcall RoundImage(int RoundWidth, int RoundHeight);
	void __fastcall RadialStretch(double ARed, double BRed, double CRed, double DRed, double AGreen, double BGreen, double CGreen, double DGreen, double ABlue, double BBlue, double CBlue, double DBlue);
	void __fastcall Crop(int x1, int y1, int x2, int y2)/* overload */;
	void __fastcall Crop(const System::Types::TRect &Rect)/* overload */;
	void __fastcall CropTransparentBorder(void);
	System::Types::TRect __fastcall AutoCrop(int Tolerance, Hyiedefs::TRGB Background, bool DoCrop = true)/* overload */;
	System::Types::TRect __fastcall AutoCrop(int Tolerance, System::Uitypes::TColor Background, bool DoCrop = true)/* overload */;
	System::Types::TRect __fastcall AutoCrop2(double BorderRate = 6.000000E+00, bool DoCrop = true);
	void __fastcall MakeTile(int columns = 0x2, int rows = 0x2);
	void __fastcall ShiftChannel(int offsetX, int offsetY, TIEChannel channel, int fillValue);
	void __fastcall DisposeChannels(System::UnicodeString newDispo);
	void __fastcall Deinterlace(TIEDeinterlaceMode mode);
	void __fastcall Encrypt(System::Byte *Passkey, const int Passkey_High, TIEEncryptionAlgorithm Algorithm = (TIEEncryptionAlgorithm)(0x0))/* overload */;
	void __fastcall Encrypt(System::AnsiString Passkey, TIEEncryptionAlgorithm Algorithm = (TIEEncryptionAlgorithm)(0x0))/* overload */;
	void __fastcall Decrypt(System::Byte *Passkey, const int Passkey_High, TIEEncryptionAlgorithm Algorithm = (TIEEncryptionAlgorithm)(0x0))/* overload */;
	void __fastcall Decrypt(System::AnsiString Passkey, TIEEncryptionAlgorithm Algorithm = (TIEEncryptionAlgorithm)(0x0))/* overload */;
	void __fastcall Reflection(int minAlpha = 0x0, int maxAlpha = 0xc8, int percentage = 0x64);
	void __fastcall PerspectiveDraw(Hyieutils::TIEBitmap* Source, int x0, int y0, int x1, int y1, int x2, int y2, int x3, int y3, int alphaMin = 0xffffffff, int alphaMax = 0xffffffff, bool mergeAlpha = false);
	Hyiedefs::TIEQuadCoords __fastcall ProjectDraw(Hyieutils::TIEBitmap* Source, int centerDestX, int centerDestY, int destWidth, int destHeight, double depth, int translateX, int translateY, double rotateX, double rotateY, int specularAlphaMin = 0xffffffff, int specularAlphaMax = 0xffffffff, bool mergeAlpha = false)/* overload */;
	Hyiedefs::TIEQuadCoords __fastcall ProjectDraw(Hyieutils::TIEBitmap* Source, int centerDestX, int centerDestY, double scale, double depth, int translateX, int translateY, double rotateX, double rotateY, int specularAlphaMin = 0xffffffff, int specularAlphaMax = 0xffffffff, bool mergeAlpha = false)/* overload */;
	void __fastcall MapGrayToColor(Hyiedefs::TRGB *map, const int map_High);
	void __fastcall WhiteBalance_coef(double Red, double Green, double Blue);
	void __fastcall WhiteBalance_GrayWorld(void);
	void __fastcall WhiteBalance_WhiteAt(int WhiteX, int WhiteY);
	void __fastcall WhiteBalance_AutoWhite(void);
	void __fastcall AdjustGainOffset(void);
	void __fastcall AutoImageEnhance1(int SubsampledSize = 0x3c, int Slope = 0x14, int Cut = 0x19, int Neighbour = 0x2);
	void __fastcall AutoImageEnhance2(int ScaleCount = 0x3, int ScaleCurve = 0x2, double Variance = 1.800000E+00, int ScaleHigh = 0xc8, bool Luminance = true);
	void __fastcall AutoImageEnhance3(double Gamma = 3.500000E-01, int Saturation = 0x50);
	void __fastcall AutoSharp(int Intensity = 0x44, double rate = 3.500000E-02);
	void __fastcall Colorize(int hue, int saturation, double luminosity);
	void __fastcall AdjustBrightnessContrastSaturation(int Brightness, int Contrast, int Saturation);
	void __fastcall Contrast2(double Amount);
	void __fastcall AdjustSaturation(int Amount);
	void __fastcall AdjustTemperature(int temperature);
	void __fastcall AdjustTint(int Amount)/* overload */;
	void __fastcall AdjustTint(int Amount, Hyiedefs::TRGB FixedColorStart, Hyiedefs::TRGB FixedColorEnd)/* overload */;
	void __fastcall AdjustTint(int Amount, const System::Types::TPoint &FixedColorPos)/* overload */;
	void __fastcall AdjustLumSatHistogram(double Saturation, double Luminance);
	void __fastcall Contrast3(int Change, int Midpoint, bool DoRed, bool DoGreen, bool DoBlue);
	int __fastcall CalcOrientation(void);
	void __fastcall GetHistogram(void * Hist)/* overload */;
	TIEHistogram __fastcall GetHistogram(void)/* overload */;
	void __fastcall CalcImagePalette(Hyiedefs::TRGB *Palette, const int Palette_High, int MaxCol = 0x100);
	int __fastcall CalcImageNumColors(void);
	Hyieutils::TIEBitmap* __fastcall GetHSVChannel(int ch);
	void __fastcall GetHSVChannelAll(Hyieutils::TIEBitmap* BitmapH, Hyieutils::TIEBitmap* BitmapS, Hyieutils::TIEBitmap* BitmapV);
	Hyieutils::TIEBitmap* __fastcall GetRGBChannel _DEPRECATED_ATTRIBUTE0 (int ch)/* overload */;
	Hyieutils::TIEBitmap* __fastcall GetRGBChannel(TIEChannel ch)/* overload */;
	void __fastcall GetRGBChannelAll(Hyieutils::TIEBitmap* BitmapR, Hyieutils::TIEBitmap* BitmapG, Hyieutils::TIEBitmap* BitmapB);
	System::AnsiString __fastcall ReadHiddenText(void);
	int __fastcall ReadHiddenData(char * data, int maxlen);
	int __fastcall GetHiddenDataSpace(void);
	void __fastcall ClearHiddenText(void);
	Iefft::TIEFtImage* __fastcall FTCreateImage(Iefft::TIEFtImageType ImageType, int NewWidth = 0xffffffff, int NewHeight = 0xffffffff);
	void __fastcall FTConvertFrom(Iefft::TIEFtImage* ft);
	void __fastcall FTDisplayFrom(Iefft::TIEFtImage* ft);
	void __fastcall FTClearZone(int tx1, int ty1, int tx2, int ty2, bool GrayScale);
	double __fastcall SkewDetection(int ResampleWidth = 0x0, int AngleRange = 0x1e, double Precision = 1.000000E-01, bool EdgeDetect = false);
	double __fastcall SkewDetectionFine(double StartingAngle = 0.000000E+00, double resolution = 1.000000E-01, int range = 0xa, bool maxQuality = true);
	void __fastcall CalcDensityHistogram(void * VertHist, void * HorizHist, int norm_vert, int norm_horiz);
	bool __fastcall ComputeImageEquality(Hyieutils::TIEBitmap* SecondImage, double &psnr_min, double &psnr_max, double &mse_min, double &mse_max, double &rmse_min, double &rmse_max, double &pae_min, double &pae_max, double &mae_min, double &mae_max);
	double __fastcall CompareWith(Hyieutils::TIEBitmap* SecondImage, Hyieutils::TIEBitmap* DiffBitmap);
	double __fastcall CompareHistogramWith(Hyieutils::TIEBitmap* SecondImage, TIECmpMode Mode, bool GrayScale);
	double __fastcall GetDominantColor(Hyiedefs::TRGB &Color);
	System::Classes::TList* __fastcall SeparateObjects(int Quality = 0x4, bool MergeCommonAreas = true)/* overload */;
	System::Classes::TList* __fastcall SeparateObjects(int Quality, bool MergeCommonAreas, Hyiedefs::TRGB BackgroundColorBegin, Hyiedefs::TRGB BackgroundColorEnd)/* overload */;
	Hyiedefs::TRGB __fastcall CalcAverageRGB(void);
	double __fastcall CalcStdDev(void);
	virtual void __fastcall SaveUndo(TIEUndoSource Source = (TIEUndoSource)(0x1));
	virtual void __fastcall SaveUndoCaptioned(const System::UnicodeString Caption, TIEUndoSource Source = (TIEUndoSource)(0x1));
	virtual void __fastcall ClearUndo(void);
	void __fastcall ClearUndoAt(int Position);
	virtual void __fastcall ClearAllUndo(void);
	virtual void __fastcall Undo(bool AutoRedo = false);
	void __fastcall UndoRect(int x1, int y1, int x2, int y2);
	virtual void __fastcall UndoAt(int Position, bool AutoRedo = false);
	__property bool CanUndo = {read=GetCanUndo, nodefault};
	__property bool CanRedo = {read=GetCanRedo, nodefault};
	__property Hyieutils::TIELocation UndoLocation = {read=fUndoLocation, write=fUndoLocation, nodefault};
	__property int UndoCount = {read=GetUndoCount, nodefault};
	__property System::UnicodeString UndoCaptions[int index] = {read=GetUndoCaptions, write=SetUndoCaptions};
	TIEUndoSource __fastcall UndoPeekAt(int Position);
	virtual void __fastcall SaveRedo(TIEUndoSource Source = (TIEUndoSource)(0x1));
	virtual void __fastcall SaveRedoCaptioned(const System::UnicodeString Caption, TIEUndoSource Source = (TIEUndoSource)(0x1));
	__property System::UnicodeString RedoCaptions[int index] = {read=GetRedoCaptions};
	__property int RedoCount = {read=GetRedoCount, nodefault};
	virtual void __fastcall ClearAllRedo(void);
	virtual void __fastcall ClearRedo(void);
	virtual void __fastcall Redo(void);
	virtual void __fastcall RedoAt(int Position);
	TIEUndoSource __fastcall RedoPeekAt(int Position);
	bool __fastcall CopyToClipboard(bool UseInternalFormat = true);
	bool __fastcall SelCopyToClip(bool UseInternalFormat = true);
	bool __fastcall SelCutToClip(bool UseInternalFormat = true, bool CutAlpha = false);
	void __fastcall SelPasteFromClipStretch(bool MergeAlpha = true);
	void __fastcall SelPasteFromClip(bool MergeAlpha = true, bool MaintainAspectRatio = false);
	void __fastcall PointPasteFromClip(int x1, int y1, bool MergeAlpha = true);
	void __fastcall PasteFromClipboard(void);
	bool __fastcall IsClipboardAvailable(void);
	DYNAMIC bool __fastcall GetReSel(int &fSX1, int &fSY1, int &fSX2, int &fSY2, Hyiedefs::PPointArray &PolySel, int &PolySelCount, Hyieutils::TIEMask* &mask);
	void __fastcall PrepareTransitionBitmaps(Vcl::Graphics::TBitmap* StartBitmap, Vcl::Graphics::TBitmap* EndBitmap, Iextransitions::TIETransitionType Effect, int iWidth = 0xffffffff, int iHeight = 0xffffffff, System::Uitypes::TColor BackgroundColor = (System::Uitypes::TColor)(0xffffffff), Hyiedefs::TResampleFilter ResamplingFilter = (Hyiedefs::TResampleFilter)(0x9));
	void __fastcall PrepareTransitionBitmapsEx(Vcl::Graphics::TBitmap* StartBitmap, Vcl::Graphics::TBitmap* EndBitmap, Iextransitions::TIETransitionType Effect, const System::Types::TRect &StartRect, const System::Types::TRect &EndRect, bool RectMaintainAspectRatio = true, int iWidth = 0xffffffff, int iHeight = 0xffffffff, bool bStretchSmall = false, System::Uitypes::TColor BackgroundColor = (System::Uitypes::TColor)(0xffffffff), Hyiedefs::TResampleFilter ResamplingFilter = (Hyiedefs::TResampleFilter)(0x9), Iextransitions::TIETransitionTiming Timing = (Iextransitions::TIETransitionTiming)(0x0));
	void __fastcall CreateTransitionBitmap(float TransitionProgress, Vcl::Graphics::TBitmap* DestBitmap);
	void __fastcall TextOut(int X, int Y, const System::UnicodeString sText, Vcl::Graphics::TFont* AFont = (Vcl::Graphics::TFont*)(0x0), int Angle = 0x0, bool bAntiAlias = true)/* overload */;
	void __fastcall TextOut(int X, int Y, const System::UnicodeString sText, const System::UnicodeString sFontName, int iFontSize, System::Uitypes::TColor cFontColor, System::Uitypes::TFontStyles Style, int Angle = 0x0, bool bAntiAlias = true)/* overload */;
	
__published:
	__property Ieview::TIEView* AttachedImageEn = {read=fImageEnView, write=SetAttachedImageEn};
	__property bool AutoUndo = {read=fAutoUndo, write=fAutoUndo, default=1};
	__property System::Uitypes::TColor Background = {read=GetReBackground, write=SetReBackground, default=0};
	__property Hyiedefs::TIEProgressEvent OnProgress = {read=fOnProgress, write=fOnProgress};
	__property TPRPreviewsParams PreviewsParams = {read=GetPRPreviewParams, write=SetPRPreviewParams, nodefault};
	__property Vcl::Graphics::TFont* PreviewFont = {read=fPreviewFont, write=SetPreviewFont};
	__property bool PreviewFontEnabled = {read=fPreviewFontEnabled, write=SetPreviewFontEnabled, default=0};
	__property Vcl::Extctrls::TImage* AttachedTImage = {read=fTImage, write=SetTImage};
	__property TIEPreviewEvent OnPreview = {read=fOnPreview, write=fOnPreview};
	__property int UndoLimit = {read=fUndoLimit, write=SetUndoLimit, default=1};
	__property System::Classes::TNotifyEvent OnFinishWork = {read=fOnFinishWork, write=fOnFinishWork};
	__property bool AutoConvertFormat = {read=fAutoConvertFormat, write=fAutoConvertFormat, default=1};
	__property TIESaveUndoEvent OnSaveUndo = {read=fOnSaveUndo, write=fOnSaveUndo};
	__property System::UnicodeString ImageEnVersion = {read=GetImageEnVersion, write=SetImageEnVersion, stored=false};
};


enum DECLSPEC_DENUM TIEProjectBitmapOp : unsigned char { ieovoCALCRECTONLY, ieovoDRAWONLY, ieovoFULLOP };

struct DECLSPEC_DRECORD TIEPrecalcTransform
{
public:
	double rotateX;
	double rotateY;
	int dst_x1;
	int dst_y1;
	int dst_x2;
	int dst_y2;
	int destX;
	int destY;
	int width;
	int height;
	System::Word *src;
};


typedef TIEPrecalcTransform *PIEPrecalcTransform;

typedef System::StaticArray<System::UnicodeString, 59> Imageenproc__5;

//-- var, const, procedure ---------------------------------------------------
#define ppeColorAdjust (System::Set<Imageenproc__2, Imageenproc__2::peAll, Imageenproc__2::peSoftShadow>() << Imageenproc__2::peContrast << Imageenproc__2::peHSV << Imageenproc__2::peHSL << Imageenproc__2::peRGB << Imageenproc__2::peEqualize << Imageenproc__2::peFFT << Imageenproc__2::peGamma << Imageenproc__2::peSharpen )
#define ppeEffects (System::Set<Imageenproc__2, Imageenproc__2::peAll, Imageenproc__2::peSoftShadow>() << Imageenproc__2::peUserFilt << Imageenproc__2::peBumpMap << Imageenproc__2::peLens << Imageenproc__2::peWave << Imageenproc__2::peMorph << Imageenproc__2::peRotate << Imageenproc__2::peResize << Imageenproc__2::peSoftShadow )
static const System::Int8 fpNone = System::Int8(0x0);
static const System::Int8 fpBlur = System::Int8(0x1);
static const System::Int8 fpEdge = System::Int8(0x2);
static const System::Int8 fpEmboss = System::Int8(0x3);
static const System::Int8 fpHighPass1 = System::Int8(0x4);
static const System::Int8 fpHighPass2 = System::Int8(0x5);
static const System::Int8 fpHighPass3 = System::Int8(0x6);
static const System::Int8 fpLowPass1 = System::Int8(0x7);
static const System::Int8 fpLowPass2 = System::Int8(0x8);
extern DELPHI_PACKAGE System::StaticArray<System::StaticArray<int, 8>, 8> BWORDERPATTERN;
extern DELPHI_PACKAGE System::AnsiString IERAWCLIPFORMAT_NAME;
extern DELPHI_PACKAGE System::StaticArray<System::StaticArray<Hyiedefs::TRGB, 8>, 256> C1TO24;
extern DELPHI_PACKAGE int IERAWCLIPFORMAT;
extern DELPHI_PACKAGE System::ResourceString _IERS_CONVOLVE;
#define Imageenproc_IERS_CONVOLVE System::LoadResourceString(&Imageenproc::_IERS_CONVOLVE)
extern DELPHI_PACKAGE System::ResourceString _IERS_APPLYFILTER;
#define Imageenproc_IERS_APPLYFILTER System::LoadResourceString(&Imageenproc::_IERS_APPLYFILTER)
extern DELPHI_PACKAGE System::ResourceString _IERS_HSLVAR;
#define Imageenproc_IERS_HSLVAR System::LoadResourceString(&Imageenproc::_IERS_HSLVAR)
extern DELPHI_PACKAGE System::ResourceString _IERS_HSVVAR;
#define Imageenproc_IERS_HSVVAR System::LoadResourceString(&Imageenproc::_IERS_HSVVAR)
extern DELPHI_PACKAGE System::ResourceString _IERS_CONVERTTOGRAY;
#define Imageenproc_IERS_CONVERTTOGRAY System::LoadResourceString(&Imageenproc::_IERS_CONVERTTOGRAY)
extern DELPHI_PACKAGE System::ResourceString _IERS_CONVERTTOSEPIA;
#define Imageenproc_IERS_CONVERTTOSEPIA System::LoadResourceString(&Imageenproc::_IERS_CONVERTTOSEPIA)
extern DELPHI_PACKAGE System::ResourceString _IERS_MERGE;
#define Imageenproc_IERS_MERGE System::LoadResourceString(&Imageenproc::_IERS_MERGE)
extern DELPHI_PACKAGE System::ResourceString _IERS_THRESHOLD;
#define Imageenproc_IERS_THRESHOLD System::LoadResourceString(&Imageenproc::_IERS_THRESHOLD)
extern DELPHI_PACKAGE System::ResourceString _IERS_THRESHOLD2;
#define Imageenproc_IERS_THRESHOLD2 System::LoadResourceString(&Imageenproc::_IERS_THRESHOLD2)
extern DELPHI_PACKAGE System::ResourceString _IERS_HISTAUTOEQUALIZE;
#define Imageenproc_IERS_HISTAUTOEQUALIZE System::LoadResourceString(&Imageenproc::_IERS_HISTAUTOEQUALIZE)
extern DELPHI_PACKAGE System::ResourceString _IERS_HISTEQUALIZE;
#define Imageenproc_IERS_HISTEQUALIZE System::LoadResourceString(&Imageenproc::_IERS_HISTEQUALIZE)
extern DELPHI_PACKAGE System::ResourceString _IERS_CONTRAST;
#define Imageenproc_IERS_CONTRAST System::LoadResourceString(&Imageenproc::_IERS_CONTRAST)
extern DELPHI_PACKAGE System::ResourceString _IERS_INTENSITYRGBALL;
#define Imageenproc_IERS_INTENSITYRGBALL System::LoadResourceString(&Imageenproc::_IERS_INTENSITYRGBALL)
extern DELPHI_PACKAGE System::ResourceString _IERS_NEGATIVE;
#define Imageenproc_IERS_NEGATIVE System::LoadResourceString(&Imageenproc::_IERS_NEGATIVE)
extern DELPHI_PACKAGE System::ResourceString _IERS_CASTCOLORRANGE;
#define Imageenproc_IERS_CASTCOLORRANGE System::LoadResourceString(&Imageenproc::_IERS_CASTCOLORRANGE)
extern DELPHI_PACKAGE System::ResourceString _IERS_MATCHHSVRANGE;
#define Imageenproc_IERS_MATCHHSVRANGE System::LoadResourceString(&Imageenproc::_IERS_MATCHHSVRANGE)
extern DELPHI_PACKAGE System::ResourceString _IERS_BUMPMAPPING;
#define Imageenproc_IERS_BUMPMAPPING System::LoadResourceString(&Imageenproc::_IERS_BUMPMAPPING)
extern DELPHI_PACKAGE System::ResourceString _IERS_LENS;
#define Imageenproc_IERS_LENS System::LoadResourceString(&Imageenproc::_IERS_LENS)
extern DELPHI_PACKAGE System::ResourceString _IERS_WAVE;
#define Imageenproc_IERS_WAVE System::LoadResourceString(&Imageenproc::_IERS_WAVE)
extern DELPHI_PACKAGE System::ResourceString _IERS_MAXIMUM;
#define Imageenproc_IERS_MAXIMUM System::LoadResourceString(&Imageenproc::_IERS_MAXIMUM)
extern DELPHI_PACKAGE System::ResourceString _IERS_MINIMUM;
#define Imageenproc_IERS_MINIMUM System::LoadResourceString(&Imageenproc::_IERS_MINIMUM)
extern DELPHI_PACKAGE System::ResourceString _IERS_OPENING;
#define Imageenproc_IERS_OPENING System::LoadResourceString(&Imageenproc::_IERS_OPENING)
extern DELPHI_PACKAGE System::ResourceString _IERS_CLOSING;
#define Imageenproc_IERS_CLOSING System::LoadResourceString(&Imageenproc::_IERS_CLOSING)
extern DELPHI_PACKAGE System::ResourceString _IERS_FILL;
#define Imageenproc_IERS_FILL System::LoadResourceString(&Imageenproc::_IERS_FILL)
extern DELPHI_PACKAGE System::ResourceString _IERS_REMOVEISOLATEDPIXELS;
#define Imageenproc_IERS_REMOVEISOLATEDPIXELS System::LoadResourceString(&Imageenproc::_IERS_REMOVEISOLATEDPIXELS)
extern DELPHI_PACKAGE System::ResourceString _IERS_PAINTMARK;
#define Imageenproc_IERS_PAINTMARK System::LoadResourceString(&Imageenproc::_IERS_PAINTMARK)
extern DELPHI_PACKAGE System::ResourceString _IERS_GAMMACORRECT;
#define Imageenproc_IERS_GAMMACORRECT System::LoadResourceString(&Imageenproc::_IERS_GAMMACORRECT)
extern DELPHI_PACKAGE System::ResourceString _IERS_BLUR;
#define Imageenproc_IERS_BLUR System::LoadResourceString(&Imageenproc::_IERS_BLUR)
extern DELPHI_PACKAGE System::ResourceString _IERS_SETTRANSPARENTCOLORS;
#define Imageenproc_IERS_SETTRANSPARENTCOLORS System::LoadResourceString(&Imageenproc::_IERS_SETTRANSPARENTCOLORS)
extern DELPHI_PACKAGE System::ResourceString _IERS_MEDIANFILTER;
#define Imageenproc_IERS_MEDIANFILTER System::LoadResourceString(&Imageenproc::_IERS_MEDIANFILTER)
extern DELPHI_PACKAGE System::ResourceString _IERS_WALLISFILTER;
#define Imageenproc_IERS_WALLISFILTER System::LoadResourceString(&Imageenproc::_IERS_WALLISFILTER)
extern DELPHI_PACKAGE System::ResourceString _IERS_SHARPEN;
#define Imageenproc_IERS_SHARPEN System::LoadResourceString(&Imageenproc::_IERS_SHARPEN)
extern DELPHI_PACKAGE System::ResourceString _IERS_UNSHARPMASK;
#define Imageenproc_IERS_UNSHARPMASK System::LoadResourceString(&Imageenproc::_IERS_UNSHARPMASK)
extern DELPHI_PACKAGE System::ResourceString _IERS_REMOVEREDEYES;
#define Imageenproc_IERS_REMOVEREDEYES System::LoadResourceString(&Imageenproc::_IERS_REMOVEREDEYES)
extern DELPHI_PACKAGE System::ResourceString _IERS_ROUNDIMAGE;
#define Imageenproc_IERS_ROUNDIMAGE System::LoadResourceString(&Imageenproc::_IERS_ROUNDIMAGE)
extern DELPHI_PACKAGE System::ResourceString _IERS_RADIALSTRETCH;
#define Imageenproc_IERS_RADIALSTRETCH System::LoadResourceString(&Imageenproc::_IERS_RADIALSTRETCH)
extern DELPHI_PACKAGE System::ResourceString _IERS_WHITEBALANCE_COEF;
#define Imageenproc_IERS_WHITEBALANCE_COEF System::LoadResourceString(&Imageenproc::_IERS_WHITEBALANCE_COEF)
extern DELPHI_PACKAGE System::ResourceString _IERS_WHITEBALANCE_GRAYWORLD;
#define Imageenproc_IERS_WHITEBALANCE_GRAYWORLD System::LoadResourceString(&Imageenproc::_IERS_WHITEBALANCE_GRAYWORLD)
extern DELPHI_PACKAGE System::ResourceString _IERS_WHITEBALANCE_WHITEAT;
#define Imageenproc_IERS_WHITEBALANCE_WHITEAT System::LoadResourceString(&Imageenproc::_IERS_WHITEBALANCE_WHITEAT)
extern DELPHI_PACKAGE System::ResourceString _IERS_WHITEBALANCE_AUTOWHITE;
#define Imageenproc_IERS_WHITEBALANCE_AUTOWHITE System::LoadResourceString(&Imageenproc::_IERS_WHITEBALANCE_AUTOWHITE)
extern DELPHI_PACKAGE System::ResourceString _IERS_ADJUSTGAINOFFSET;
#define Imageenproc_IERS_ADJUSTGAINOFFSET System::LoadResourceString(&Imageenproc::_IERS_ADJUSTGAINOFFSET)
extern DELPHI_PACKAGE System::ResourceString _IERS_CASTCOLOR;
#define Imageenproc_IERS_CASTCOLOR System::LoadResourceString(&Imageenproc::_IERS_CASTCOLOR)
extern DELPHI_PACKAGE System::ResourceString _IERS_CASTALPHA;
#define Imageenproc_IERS_CASTALPHA System::LoadResourceString(&Imageenproc::_IERS_CASTALPHA)
extern DELPHI_PACKAGE System::ResourceString _IERS_COLORIZE;
#define Imageenproc_IERS_COLORIZE System::LoadResourceString(&Imageenproc::_IERS_COLORIZE)
extern DELPHI_PACKAGE System::ResourceString _IERS_AUTOIMAGEENHANCE1;
#define Imageenproc_IERS_AUTOIMAGEENHANCE1 System::LoadResourceString(&Imageenproc::_IERS_AUTOIMAGEENHANCE1)
extern DELPHI_PACKAGE System::ResourceString _IERS_AUTOSHARP;
#define Imageenproc_IERS_AUTOSHARP System::LoadResourceString(&Imageenproc::_IERS_AUTOSHARP)
extern DELPHI_PACKAGE System::ResourceString _IERS_AUTOIMAGEENHANCE2;
#define Imageenproc_IERS_AUTOIMAGEENHANCE2 System::LoadResourceString(&Imageenproc::_IERS_AUTOIMAGEENHANCE2)
extern DELPHI_PACKAGE System::ResourceString _IERS_SHIFTCHANNEL;
#define Imageenproc_IERS_SHIFTCHANNEL System::LoadResourceString(&Imageenproc::_IERS_SHIFTCHANNEL)
extern DELPHI_PACKAGE System::ResourceString _IERS_ADJUSTBRIGHTNESSCONTRASTSATURATION;
#define Imageenproc_IERS_ADJUSTBRIGHTNESSCONTRASTSATURATION System::LoadResourceString(&Imageenproc::_IERS_ADJUSTBRIGHTNESSCONTRASTSATURATION)
extern DELPHI_PACKAGE System::ResourceString _IERS_CONTRAST2;
#define Imageenproc_IERS_CONTRAST2 System::LoadResourceString(&Imageenproc::_IERS_CONTRAST2)
extern DELPHI_PACKAGE System::ResourceString _IERS_ADJUSTSATURATION;
#define Imageenproc_IERS_ADJUSTSATURATION System::LoadResourceString(&Imageenproc::_IERS_ADJUSTSATURATION)
extern DELPHI_PACKAGE System::ResourceString _IERS_ADJUSTTINT;
#define Imageenproc_IERS_ADJUSTTINT System::LoadResourceString(&Imageenproc::_IERS_ADJUSTTINT)
extern DELPHI_PACKAGE System::ResourceString _IERS_ADJUSTLUMSATHISTOGRAM;
#define Imageenproc_IERS_ADJUSTLUMSATHISTOGRAM System::LoadResourceString(&Imageenproc::_IERS_ADJUSTLUMSATHISTOGRAM)
extern DELPHI_PACKAGE System::ResourceString _IERS_DISPOSECHANNELS;
#define Imageenproc_IERS_DISPOSECHANNELS System::LoadResourceString(&Imageenproc::_IERS_DISPOSECHANNELS)
extern DELPHI_PACKAGE System::ResourceString _IERS_INTENSITY;
#define Imageenproc_IERS_INTENSITY System::LoadResourceString(&Imageenproc::_IERS_INTENSITY)
extern DELPHI_PACKAGE System::ResourceString _IERS_CONTRAST3;
#define Imageenproc_IERS_CONTRAST3 System::LoadResourceString(&Imageenproc::_IERS_CONTRAST3)
extern DELPHI_PACKAGE System::ResourceString _IERS_AUTOIMAGEENHANCE3;
#define Imageenproc_IERS_AUTOIMAGEENHANCE3 System::LoadResourceString(&Imageenproc::_IERS_AUTOIMAGEENHANCE3)
extern DELPHI_PACKAGE System::ResourceString _IERS_REFLECTION;
#define Imageenproc_IERS_REFLECTION System::LoadResourceString(&Imageenproc::_IERS_REFLECTION)
extern DELPHI_PACKAGE System::ResourceString _IERS_PERSPECTIVEDRAW;
#define Imageenproc_IERS_PERSPECTIVEDRAW System::LoadResourceString(&Imageenproc::_IERS_PERSPECTIVEDRAW)
extern DELPHI_PACKAGE System::ResourceString _IERS_PROJECTDRAW;
#define Imageenproc_IERS_PROJECTDRAW System::LoadResourceString(&Imageenproc::_IERS_PROJECTDRAW)
extern DELPHI_PACKAGE System::ResourceString _IERS_ADJUSTTEMPERATURE;
#define Imageenproc_IERS_ADJUSTTEMPERATURE System::LoadResourceString(&Imageenproc::_IERS_ADJUSTTEMPERATURE)
extern DELPHI_PACKAGE System::ResourceString _IERS_MOTIONBLUR;
#define Imageenproc_IERS_MOTIONBLUR System::LoadResourceString(&Imageenproc::_IERS_MOTIONBLUR)
extern DELPHI_PACKAGE System::ResourceString _IERS_RANDOM;
#define Imageenproc_IERS_RANDOM System::LoadResourceString(&Imageenproc::_IERS_RANDOM)
extern DELPHI_PACKAGE System::ResourceString _IERS_MAPGRAYTOCOLOR;
#define Imageenproc_IERS_MAPGRAYTOCOLOR System::LoadResourceString(&Imageenproc::_IERS_MAPGRAYTOCOLOR)
extern DELPHI_PACKAGE System::ResourceString _IERS_FTCLEARZONE;
#define Imageenproc_IERS_FTCLEARZONE System::LoadResourceString(&Imageenproc::_IERS_FTCLEARZONE)
extern DELPHI_PACKAGE System::ResourceString _IERS_RESAMPLE;
#define Imageenproc_IERS_RESAMPLE System::LoadResourceString(&Imageenproc::_IERS_RESAMPLE)
extern DELPHI_PACKAGE System::ResourceString _IERS_RESIZE;
#define Imageenproc_IERS_RESIZE System::LoadResourceString(&Imageenproc::_IERS_RESIZE)
extern DELPHI_PACKAGE System::ResourceString _IERS_PASTEFROMCLIPBOARD;
#define Imageenproc_IERS_PASTEFROMCLIPBOARD System::LoadResourceString(&Imageenproc::_IERS_PASTEFROMCLIPBOARD)
extern DELPHI_PACKAGE System::ResourceString _IERS_POINTPASTEFROMCLIP;
#define Imageenproc_IERS_POINTPASTEFROMCLIP System::LoadResourceString(&Imageenproc::_IERS_POINTPASTEFROMCLIP)
extern DELPHI_PACKAGE System::ResourceString _IERS_SELPASTEFROMCLIPSTRETCH;
#define Imageenproc_IERS_SELPASTEFROMCLIPSTRETCH System::LoadResourceString(&Imageenproc::_IERS_SELPASTEFROMCLIPSTRETCH)
extern DELPHI_PACKAGE System::ResourceString _IERS_SELPASTEFROMCLIP;
#define Imageenproc_IERS_SELPASTEFROMCLIP System::LoadResourceString(&Imageenproc::_IERS_SELPASTEFROMCLIP)
extern DELPHI_PACKAGE System::ResourceString _IERS_FLIP;
#define Imageenproc_IERS_FLIP System::LoadResourceString(&Imageenproc::_IERS_FLIP)
extern DELPHI_PACKAGE System::ResourceString _IERS_SELCUTTOCLIP;
#define Imageenproc_IERS_SELCUTTOCLIP System::LoadResourceString(&Imageenproc::_IERS_SELCUTTOCLIP)
extern DELPHI_PACKAGE System::ResourceString _IERS_CLEAR;
#define Imageenproc_IERS_CLEAR System::LoadResourceString(&Imageenproc::_IERS_CLEAR)
extern DELPHI_PACKAGE System::ResourceString _IERS_CLEARSEL;
#define Imageenproc_IERS_CLEARSEL System::LoadResourceString(&Imageenproc::_IERS_CLEARSEL)
extern DELPHI_PACKAGE System::ResourceString _IERS_CROPSEL;
#define Imageenproc_IERS_CROPSEL System::LoadResourceString(&Imageenproc::_IERS_CROPSEL)
extern DELPHI_PACKAGE System::ResourceString _IERS_CONVERTTO;
#define Imageenproc_IERS_CONVERTTO System::LoadResourceString(&Imageenproc::_IERS_CONVERTTO)
extern DELPHI_PACKAGE System::ResourceString _IERS_CONVERTTO2;
#define Imageenproc_IERS_CONVERTTO2 System::LoadResourceString(&Imageenproc::_IERS_CONVERTTO2)
extern DELPHI_PACKAGE System::ResourceString _IERS_CONVERTTOPALETTE;
#define Imageenproc_IERS_CONVERTTOPALETTE System::LoadResourceString(&Imageenproc::_IERS_CONVERTTOPALETTE)
extern DELPHI_PACKAGE System::ResourceString _IERS_CONVERTTOBWORDERED;
#define Imageenproc_IERS_CONVERTTOBWORDERED System::LoadResourceString(&Imageenproc::_IERS_CONVERTTOBWORDERED)
extern DELPHI_PACKAGE System::ResourceString _IERS_CONVERTTOBWTHRESHOLD;
#define Imageenproc_IERS_CONVERTTOBWTHRESHOLD System::LoadResourceString(&Imageenproc::_IERS_CONVERTTOBWTHRESHOLD)
extern DELPHI_PACKAGE System::ResourceString _IERS_CONVERTTO24BIT;
#define Imageenproc_IERS_CONVERTTO24BIT System::LoadResourceString(&Imageenproc::_IERS_CONVERTTO24BIT)
extern DELPHI_PACKAGE System::ResourceString _IERS_ROTATE;
#define Imageenproc_IERS_ROTATE System::LoadResourceString(&Imageenproc::_IERS_ROTATE)
extern DELPHI_PACKAGE System::ResourceString _IERS_WRITEHIDDENDATA;
#define Imageenproc_IERS_WRITEHIDDENDATA System::LoadResourceString(&Imageenproc::_IERS_WRITEHIDDENDATA)
extern DELPHI_PACKAGE System::ResourceString _IERS_EDGEDETECT;
#define Imageenproc_IERS_EDGEDETECT System::LoadResourceString(&Imageenproc::_IERS_EDGEDETECT)
extern DELPHI_PACKAGE System::ResourceString _IERS_REMOVENOISE;
#define Imageenproc_IERS_REMOVENOISE System::LoadResourceString(&Imageenproc::_IERS_REMOVENOISE)
extern DELPHI_PACKAGE System::ResourceString _IERS_ADDSOFTSHADOW;
#define Imageenproc_IERS_ADDSOFTSHADOW System::LoadResourceString(&Imageenproc::_IERS_ADDSOFTSHADOW)
extern DELPHI_PACKAGE System::ResourceString _IERS_ADDINNERSHADOW;
#define Imageenproc_IERS_ADDINNERSHADOW System::LoadResourceString(&Imageenproc::_IERS_ADDINNERSHADOW)
extern DELPHI_PACKAGE System::ResourceString _IERS_CONVERTTOBW_FLOYDSTEINBERG;
#define Imageenproc_IERS_CONVERTTOBW_FLOYDSTEINBERG System::LoadResourceString(&Imageenproc::_IERS_CONVERTTOBW_FLOYDSTEINBERG)
extern DELPHI_PACKAGE System::ResourceString _IERS_CROP;
#define Imageenproc_IERS_CROP System::LoadResourceString(&Imageenproc::_IERS_CROP)
extern DELPHI_PACKAGE System::ResourceString _IERS_MAKETILE;
#define Imageenproc_IERS_MAKETILE System::LoadResourceString(&Imageenproc::_IERS_MAKETILE)
extern DELPHI_PACKAGE System::ResourceString _IERS_ROTATEANDCROP;
#define Imageenproc_IERS_ROTATEANDCROP System::LoadResourceString(&Imageenproc::_IERS_ROTATEANDCROP)
extern DELPHI_PACKAGE System::ResourceString _IERS_DEINTERLACE;
#define Imageenproc_IERS_DEINTERLACE System::LoadResourceString(&Imageenproc::_IERS_DEINTERLACE)
extern DELPHI_PACKAGE System::ResourceString _IERS_EDGEDETECT_SOBEL;
#define Imageenproc_IERS_EDGEDETECT_SOBEL System::LoadResourceString(&Imageenproc::_IERS_EDGEDETECT_SOBEL)
extern DELPHI_PACKAGE System::ResourceString _IERS_ENCRYPT;
#define Imageenproc_IERS_ENCRYPT System::LoadResourceString(&Imageenproc::_IERS_ENCRYPT)
extern DELPHI_PACKAGE System::ResourceString _IERS_DECRYPT;
#define Imageenproc_IERS_DECRYPT System::LoadResourceString(&Imageenproc::_IERS_DECRYPT)
extern DELPHI_PACKAGE System::ResourceString _IERS_CONVERTTOBWLOCALTHRESHOLD;
#define Imageenproc_IERS_CONVERTTOBWLOCALTHRESHOLD System::LoadResourceString(&Imageenproc::_IERS_CONVERTTOBWLOCALTHRESHOLD)
extern DELPHI_PACKAGE System::ResourceString _IERS_TEXTOUT;
#define Imageenproc_IERS_TEXTOUT System::LoadResourceString(&Imageenproc::_IERS_TEXTOUT)
extern DELPHI_PACKAGE System::ResourceString _IERS_FLT_NONE;
#define Imageenproc_IERS_FLT_NONE System::LoadResourceString(&Imageenproc::_IERS_FLT_NONE)
extern DELPHI_PACKAGE System::ResourceString _IERS_FLT_BLUR;
#define Imageenproc_IERS_FLT_BLUR System::LoadResourceString(&Imageenproc::_IERS_FLT_BLUR)
extern DELPHI_PACKAGE System::ResourceString _IERS_FLT_EDGES;
#define Imageenproc_IERS_FLT_EDGES System::LoadResourceString(&Imageenproc::_IERS_FLT_EDGES)
extern DELPHI_PACKAGE System::ResourceString _IERS_FLT_EMBOSS;
#define Imageenproc_IERS_FLT_EMBOSS System::LoadResourceString(&Imageenproc::_IERS_FLT_EMBOSS)
extern DELPHI_PACKAGE System::ResourceString _IERS_FLT_HIGH_PASS_1;
#define Imageenproc_IERS_FLT_HIGH_PASS_1 System::LoadResourceString(&Imageenproc::_IERS_FLT_HIGH_PASS_1)
extern DELPHI_PACKAGE System::ResourceString _IERS_FLT_HIGH_PASS_2;
#define Imageenproc_IERS_FLT_HIGH_PASS_2 System::LoadResourceString(&Imageenproc::_IERS_FLT_HIGH_PASS_2)
extern DELPHI_PACKAGE System::ResourceString _IERS_FLT_HIGH_PASS_3;
#define Imageenproc_IERS_FLT_HIGH_PASS_3 System::LoadResourceString(&Imageenproc::_IERS_FLT_HIGH_PASS_3)
extern DELPHI_PACKAGE System::ResourceString _IERS_FLT_LOW_PASS_1;
#define Imageenproc_IERS_FLT_LOW_PASS_1 System::LoadResourceString(&Imageenproc::_IERS_FLT_LOW_PASS_1)
extern DELPHI_PACKAGE System::ResourceString _IERS_FLT_LOW_PASS_2;
#define Imageenproc_IERS_FLT_LOW_PASS_2 System::LoadResourceString(&Imageenproc::_IERS_FLT_LOW_PASS_2)
static const System::Int8 Align_Text_Top = System::Int8(0x0);
static const short Align_Text_Near_Top = short(-901);
static const short Align_Text_Vert_Center = short(-902);
static const short Align_Text_Near_Bottom = short(-903);
static const short Align_Text_Bottom = short(-904);
static const System::Int8 Align_Text_Left = System::Int8(0x0);
static const short Align_Text_Near_Left = short(-901);
static const short Align_Text_Horz_Center = short(-902);
static const short Align_Text_Near_Right = short(-903);
static const short Align_Text_Right = short(-904);
#define IPP_DIALOGWIDTH L"DIALOGWIDTH"
#define IPP_DIALOGHEIGHT L"DIALOGHEIGHT"
#define IPP_CONTRAST_CONTRAST L"CONTRAST_CONTRAST"
#define IPP_CONTRAST_BRIGHTNESS L"CONTRAST_BRIGHTNESS"
#define IPP_HSV_H L"HSV_H"
#define IPP_HSV_S L"HSV_S"
#define IPP_HSV_V L"HSV_V"
#define IPP_HSL_H L"HSL_H"
#define IPP_HSL_S L"HSL_S"
#define IPP_HSL_L L"HSL_L"
#define IPP_RGB_R L"RGB_R"
#define IPP_RGB_G L"RGB_G"
#define IPP_RGB_B L"RGB_B"
#define IPP_USERFILTER_VALUES_PREFIX L"USERFILTER_VALUES"
#define IPP_USERFILTER_VALUES00 L"USERFILTER_VALUES00"
#define IPP_USERFILTER_VALUES01 L"USERFILTER_VALUES01"
#define IPP_USERFILTER_VALUES02 L"USERFILTER_VALUES02"
#define IPP_USERFILTER_VALUES10 L"USERFILTER_VALUES10"
#define IPP_USERFILTER_VALUES11 L"USERFILTER_VALUES11"
#define IPP_USERFILTER_VALUES12 L"USERFILTER_VALUES12"
#define IPP_USERFILTER_VALUES20 L"USERFILTER_VALUES20"
#define IPP_USERFILTER_VALUES21 L"USERFILTER_VALUES21"
#define IPP_USERFILTER_VALUES22 L"USERFILTER_VALUES22"
#define IPP_USERFILTER_DIVISOR L"USERFILTER_DIVISOR"
#define IPP_EQUALIZATION_THRESHOLDDOWN L"EQUALIZATION_THRESHOLDDOWN"
#define IPP_EQUALIZATION_THRESHOLDUP L"EQUALIZATION_THRESHOLDUP"
#define IPP_EQUALIZATION_EQDOWN L"EQUALIZATION_EQDOWN"
#define IPP_EQUALIZATION_EQUP L"EQUALIZATION_EQUP"
#define IPP_EQUALIZATION_EQUALIZEBUTTON L"EQUALIZATION_EQUALIZEBUTTON"
#define IPP_BUMPMAP_LEFT L"BUMPMAP_LEFT"
#define IPP_BUMPMAP_TOP L"BUMPMAP_TOP"
#define IPP_BUMPMAP_WIDTH L"BUMPMAP_WIDTH"
#define IPP_BUMPMAP_HEIGHT L"BUMPMAP_HEIGHT"
#define IPP_BUMPMAP_COL L"BUMPMAP_COL"
#define IPP_BUMPMAP_SRC L"BUMPMAP_SRC"
#define IPP_BUMPMAP_AUTO L"BUMPMAP_AUTO"
#define IPP_LENS_LEFT L"LENS_LEFT"
#define IPP_LENS_TOP L"LENS_TOP"
#define IPP_LENS_WIDTH L"LENS_WIDTH"
#define IPP_LENS_HEIGHT L"LENS_HEIGHT"
#define IPP_LENS_REF L"LENS_REF"
#define IPP_LENS_AUTO L"LENS_AUTO"
#define IPP_WAVE_AMPLITUDE L"WAVE_AMPLITUDE"
#define IPP_WAVE_WAVELENGTH L"WAVE_WAVELENGTH"
#define IPP_WAVE_PHASE L"WAVE_PHASE"
#define IPP_WAVE_REFLECT L"WAVE_REFLECT"
#define IPP_MORPH_FILTER L"MORPH_FILTER"
#define IPP_MORPH_WINSIZE L"MORPH_WINSIZE"
#define IPP_ROTATE_ANGLE L"ROTATE_ANGLE"
#define IPP_FLIP_HORZ L"FLIP_HORZ"
#define IPP_FLIP_VERT L"FLIP_VERT"
#define IPP_GAMMACORRECTION_VALUE L"GAMMACORRECTION_VALUE"
#define IPP_SHARPEN_SHARPEN L"SHARPEN_SHARPEN"
#define IPP_SHARPEN_SIZE L"SHARPEN_SIZE"
#define IPP_FFT_LEFT L"FFT_LEFT"
#define IPP_FFT_TOP L"FFT_TOP"
#define IPP_FFT_RIGHT L"FFT_RIGHT"
#define IPP_FFT_BOTTOM L"FFT_BOTTOM"
#define IPP_FFT_GRAYSCALE L"FFT_GRAYSCALE"
#define IPP_RESIZE_PERCENT L"RESIZE_PERCENT"
#define IPP_SHADOW_RADIUS L"SHADOW_RADIUS"
#define IPP_SHADOW_OFFSET L"SHADOW_OFFSET"
static const System::Int8 IPP_Property_Count = System::Int8(0x3b);
extern DELPHI_PACKAGE Imageenproc__5 IPP_Property_List;
extern DELPHI_PACKAGE int __fastcall IECeil(System::Extended X);
extern DELPHI_PACKAGE void __fastcall iedswap(double &d1, double &d2);
extern DELPHI_PACKAGE void __fastcall i64swap(__int64 &v1, __int64 &v2);
extern DELPHI_PACKAGE Hyiedefs::TCMYK __fastcall CreateCMYK(System::Byte c, System::Byte m, System::Byte y, System::Byte k);
extern DELPHI_PACKAGE Hyiedefs::TRGB __fastcall CreateRGB(System::Byte r, System::Byte g, System::Byte b);
extern DELPHI_PACKAGE Hyiedefs::TRGB48 __fastcall CreateRGB48(System::Word r, System::Word g, System::Word b);
extern DELPHI_PACKAGE Hyiedefs::TRGBA __fastcall CreateRGBA(System::Byte r, System::Byte g, System::Byte b, System::Byte a);
extern DELPHI_PACKAGE Hyiedefs::TRGB __fastcall CreateRGBFromInt(int r, int g, int b);
extern DELPHI_PACKAGE int __fastcall _RGBToGray(const Hyiedefs::TRGB rgb);
extern DELPHI_PACKAGE System::Uitypes::TColor __fastcall TRGB2TColor(Hyiedefs::TRGB rgb);
extern DELPHI_PACKAGE System::Uitypes::TColor __fastcall RGB2TColor(int r, int g, int b);
extern DELPHI_PACKAGE Hyiedefs::TRGB __fastcall TColor2TRGB(System::Uitypes::TColor cl);
extern DELPHI_PACKAGE Hyiedefs::TRGBA __fastcall TColor2TRGBA(System::Uitypes::TColor cl, int transparency);
extern DELPHI_PACKAGE double __fastcall dmin(double v1, double v2);
extern DELPHI_PACKAGE double __fastcall dmax(double v1, double v2);
extern DELPHI_PACKAGE int __fastcall imax(int v1, int v2);
extern DELPHI_PACKAGE int __fastcall imin(int v1, int v2);
extern DELPHI_PACKAGE unsigned __int64 __fastcall u64min(unsigned __int64 v1, unsigned __int64 v2);
extern DELPHI_PACKAGE __int64 __fastcall i64min(__int64 v1, __int64 v2);
extern DELPHI_PACKAGE __int64 __fastcall i64max(__int64 v1, __int64 v2);
extern DELPHI_PACKAGE int __fastcall ilimit(int vv, int min, int max);
extern DELPHI_PACKAGE int __fastcall blimit(int vv);
extern DELPHI_PACKAGE System::Word __fastcall wlimit(int vv);
extern DELPHI_PACKAGE void __fastcall iswap(int &B1, int &B2);
extern DELPHI_PACKAGE void __fastcall dwswap(unsigned &B1, unsigned &B2);
extern DELPHI_PACKAGE void __fastcall dswap(double &v1, double &v2);
extern DELPHI_PACKAGE bool __fastcall EqualRGB(Hyiedefs::TRGB rgb1, Hyiedefs::TRGB rgb2);
extern DELPHI_PACKAGE void __fastcall bswap(System::Byte &B1, System::Byte &B2);
extern DELPHI_PACKAGE void __fastcall OrdCor(int &x1, int &y1, int &x2, int &y2);
extern DELPHI_PACKAGE void __fastcall IEConvolve(Hyieutils::TIEBitmap* bitmap, double *kernel, const int kernel_High, int kernelWidth, int kernelHeight, double factor, int x1, int y1, int x2, int y2, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE Hyiedefs::TRGB __fastcall IEAverageRGB(Hyieutils::TIEBitmap* bitmap, Hyieutils::TIEMask* mask, int x1, int y1, int x2, int y2);
extern DELPHI_PACKAGE void __fastcall IEGetAverageValues(Hyieutils::TIEBitmap* bitmap, Hyieutils::TIEMask* mask, int x1, int y1, int x2, int y2, Hyiedefs::TIEArrayOfDouble &avg)/* overload */;
extern DELPHI_PACKAGE void __fastcall IEGetStandardDeviation(Hyieutils::TIEBitmap* bitmap, Hyieutils::TIEMask* mask, int x1, int y1, int x2, int y2, Hyiedefs::TIEArrayOfDouble &stddev)/* overload */;
extern DELPHI_PACKAGE double __fastcall IEGetStandardDeviation(Hyieutils::TIEBitmap* bitmap, Hyieutils::TIEMask* mask, int x1, int y1, int x2, int y2)/* overload */;
extern DELPHI_PACKAGE void __fastcall _ApplyFilter(Hyieutils::TIEBitmap* bitmap, const TGraphFilter &filter, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TProgressRec &Progress);
extern DELPHI_PACKAGE void __fastcall _HSLvar(Hyieutils::TIEBitmap* bitmap, int oHue, int oSat, int oLum, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _HSVvar(Hyieutils::TIEBitmap* bitmap, int oHue, int oSat, int oVal, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _Rot90oEx(Hyieutils::TIEBitmap* bakbmp, Hyieutils::TIEBitmap* newbitmap);
extern DELPHI_PACKAGE void __fastcall _Rot90oEx8(Hyieutils::TIEBitmap* bakbmp, Hyieutils::TIEBitmap* newbitmap);
extern DELPHI_PACKAGE void __fastcall _Rot90Ex(Hyieutils::TIEBitmap* bakbmp, Hyieutils::TIEBitmap* newbitmap);
extern DELPHI_PACKAGE void __fastcall _Rot90Ex8(Hyieutils::TIEBitmap* bakbmp, Hyieutils::TIEBitmap* newbitmap);
extern DELPHI_PACKAGE void __fastcall RGB2HSL(Hyiedefs::TRGB px, double &Hue, double &Sat, double &Lum);
extern DELPHI_PACKAGE void __fastcall HSL2RGB(Hyiedefs::TRGB &px, double iHue, double iSat, double iLum);
extern DELPHI_PACKAGE void __fastcall HSV2RGB(Hyiedefs::TRGB &px, int H, int S, int V);
extern DELPHI_PACKAGE void __fastcall RGB2HSV(Hyiedefs::TRGB RGB, int &h, int &s, int &v);
extern DELPHI_PACKAGE TGraphFilter __fastcall LoadFilterFromFile(const System::UnicodeString FileName);
extern DELPHI_PACKAGE void __fastcall SaveFilterToFile(const System::UnicodeString FileName, const TGraphFilter &filt);
extern DELPHI_PACKAGE void __fastcall _ContrastRGB(Hyieutils::TIEBitmap* bitmap, double vv, int mR, int mG, int mB, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _Merge(Hyieutils::TIEBitmap* bitmap, Hyieutils::TIEBitmap* DBitmap, int pcf, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _CastColorRange(Hyieutils::TIEBitmap* bitmap, Hyiedefs::TRGB BeginColor, Hyiedefs::TRGB EndColor, Hyiedefs::TRGB CastColor, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEApplyThreshold(Hyieutils::TIEBitmap* bitmap, Hyiedefs::TRGB DownLimit, Hyiedefs::TRGB UpLimit, Hyiedefs::TRGB DownVal, Hyiedefs::TRGB UpVal, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _HistAutoEqualize(Hyieutils::TIEBitmap* bitmap, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEHistEqualize(Hyieutils::TIEBitmap* bitmap, Hyiedefs::TRGB LoThresh, Hyiedefs::TRGB HiThresh, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _IESetAlpha0Color(Hyieutils::TIEBitmap* bitmap, Hyiedefs::TRGB cl);
extern DELPHI_PACKAGE void __fastcall _IEAdjustResampleDimensions(int &iTargetWidth, int &iTargetHeight, int iBitmapWidth, int iBitmapHeight, bool bMaintainAspectRatio);
extern DELPHI_PACKAGE void __fastcall _IEResampleIEBitmap(Hyieutils::TIEBitmap* source, Hyieutils::TIEBitmap* dest, Hyiedefs::TResampleFilter FilterType, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _IEResampleIEBitmap2(Hyieutils::TIEBitmap* sourceANDdest, Hyiedefs::TResampleFilter FilterType, int NewWidth, int NewHeight, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _GetMediaContrastRGB(Hyieutils::TIEBitmap* bitmap, int &mR, int &mG, int &mB);
extern DELPHI_PACKAGE TIEHistogram __fastcall IEGetHistogram(Hyieutils::TIEBitmap* Bitmap, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyieutils::TIEMask* mask);
extern DELPHI_PACKAGE int __fastcall _GetImageNumColors(Hyieutils::TIEBitmap* bitmap, int fSelx1, int fSely1, int fSelx2, int fSely2);
extern DELPHI_PACKAGE Hyieutils::TIEBitmap* __fastcall _ConvertTo1bitEx(Hyieutils::TIEBitmap* Bitmap, Hyiedefs::TRGB &BackCol, Hyiedefs::TRGB &ForeCol);
extern DELPHI_PACKAGE void __fastcall _IntensityRGBAll(Hyieutils::TIEBitmap* bitmap, int r, int g, int b, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE Hyieutils::TIEBitmap* __fastcall _GetHSVChannel(Hyieutils::TIEBitmap* bitmap, int ch, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE Hyieutils::TIEBitmap* __fastcall _GetRGBChannel(Hyieutils::TIEBitmap* bitmap, int ch, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _GetHSVChannelAll(Hyieutils::TIEBitmap* bitmap, Hyieutils::TIEBitmap* BitmapH, Hyieutils::TIEBitmap* BitmapS, Hyieutils::TIEBitmap* BitmapV, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _GetRGBChannelAll(Hyieutils::TIEBitmap* bitmap, Hyieutils::TIEBitmap* BitmapR, Hyieutils::TIEBitmap* BitmapG, Hyieutils::TIEBitmap* BitmapB, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE int __fastcall _GetSimilColor(Hyiedefs::TRGB const *ColorMap, const int ColorMap_High, int nc, Hyiedefs::TRGB Col);
extern DELPHI_PACKAGE Vcl::Graphics::TBitmap* __fastcall IECloneBitmap(Vcl::Graphics::TBitmap* Source);
extern DELPHI_PACKAGE void __fastcall IECopyBitmap(Vcl::Graphics::TBitmap* Source, Vcl::Graphics::TBitmap* Dest);
extern DELPHI_PACKAGE NativeUInt __fastcall _CopyBitmaptoDIBEx(Hyieutils::TIEBaseBitmap* fBitmap, int x1, int y1, int x2, int y2, int dpix, int dpiy);
extern DELPHI_PACKAGE void __fastcall IECopyBits_large(System::PByte Dest, System::PByte Source, int DestStart, int SourceStart, int Len, int SourceRowLen);
extern DELPHI_PACKAGE void __fastcall IECopyBits_small(System::PByte Dest, System::PByte Source, int DestStart, int SourceStart, int Len, int SourceRowLen);
extern DELPHI_PACKAGE void __fastcall _CopyBitmapRect(Vcl::Graphics::TBitmap* Source, Vcl::Graphics::TBitmap* Dest, int x1, int y1, int x2, int y2);
extern DELPHI_PACKAGE void __fastcall _NegativeBuffer(System::PByte buf, int WidthBytes);
extern DELPHI_PACKAGE void __fastcall _Negative1BitEx(Hyieutils::TIEBitmap* Bitmap);
extern DELPHI_PACKAGE void __fastcall _Negative(Hyieutils::TIEBitmap* bitmap, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _FlipEx(Hyieutils::TIEBitmap* bmp, Hyiedefs::TFlipDir dir);
extern DELPHI_PACKAGE bool __fastcall _BitmapCompareX(Vcl::Graphics::TBitmap* Bitmap1, Vcl::Graphics::TBitmap* Bitmap2);
extern DELPHI_PACKAGE bool __fastcall _BitmapCompareXEx(Hyieutils::TIEBitmap* Bitmap1, Hyieutils::TIEBitmap* Bitmap2);
extern DELPHI_PACKAGE void __fastcall _ClearSelMaskEx(Hyieutils::TIEBitmap* fIEBitmap, Hyieutils::TIEMask* mask, System::Uitypes::TColor Background);
extern DELPHI_PACKAGE int __fastcall _IECopyDIB2Bitmap2Ex(NativeUInt hbi, Hyieutils::TIEDibbitmap* fBitmap, System::PByte xbits, bool unlck);
extern DELPHI_PACKAGE void __fastcall _ConvertToEx(Hyieutils::TIEBitmap* Bitmap, int NumColors, Hyiedefs::PRGBROW OutPalette, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEColorFloydSteinberg(Hyieutils::TIEBitmap* srcBitmap, Hyieutils::TIEBitmap* dstBitmap, int colorCount);
extern DELPHI_PACKAGE void __fastcall _ConvertToBWOrdered(Hyieutils::TIEBitmap* bitmap, Hyiedefs::TProgressRec &Progress);
extern DELPHI_PACKAGE void __fastcall _ConvertToBWThreshold(Hyieutils::TIEBitmap* bitmap, int Threshold, Hyiedefs::TProgressRec &Progress);
extern DELPHI_PACKAGE void __fastcall _ConvRow1To24(System::PByte spx, System::PByte dpx, int Width);
extern DELPHI_PACKAGE void __fastcall _Conv1to24(Vcl::Graphics::TBitmap* &SrcBitmap, Vcl::Graphics::TBitmap* &DstBitmap, Hyiedefs::TProgressRec &Progress);
extern DELPHI_PACKAGE void __fastcall _Conv1to24Ex(Hyieutils::TIEBitmap* &SrcBitmap, Hyieutils::TIEBitmap* &DstBitmap, Hyiedefs::TProgressRec &Progress);
extern DELPHI_PACKAGE void __fastcall _ConvertToGray(Hyieutils::TIEBitmap* bitmap, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _BumpMapping(Hyieutils::TIEBitmap* Bitmap, int LightX, int LightY, int LAmpX, int LAmpY, int pcf, Hyiedefs::TRGB Color, int fselx1, int fsely1, int fselx2, int fsely2, Hyiedefs::TProgressRec &Progress);
extern DELPHI_PACKAGE void __fastcall _RotateEx(Hyieutils::TIEBitmap* fBitmap, double fangle, bool antialias, Hyiedefs::TRGB Background, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _RotateEx8(Hyieutils::TIEBitmap* fBitmap, double fangle, bool antialias, int Background, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _lens(Hyieutils::TIEBitmap* Bitmap, int xx, int yy, int width, int height, double refraction, Hyiedefs::TProgressRec &Progress);
extern DELPHI_PACKAGE int __fastcall _GetPixelbw(System::PByte row, int pix);
extern DELPHI_PACKAGE void __fastcall _SetPixelbw(System::PByte row, int pix, int vv);
extern DELPHI_PACKAGE void __fastcall _rotate1bitEx(Hyieutils::TIEBitmap* fBitmap, double angle, int background, Hyiedefs::TProgressRec &Progress);
extern DELPHI_PACKAGE void __fastcall _rotate1bit(Vcl::Graphics::TBitmap* fBitmap, double angle, int background, Hyiedefs::TProgressRec &Progress);
extern DELPHI_PACKAGE void __fastcall _rotate8bit(Hyieutils::TIEBitmap* fBitmap, double angle, int background);
extern DELPHI_PACKAGE void __fastcall _wave(Hyieutils::TIEBitmap* Bitmap, int amplitude, int wavelength, int phase, bool reflective, Hyiedefs::TProgressRec &Progress);
extern DELPHI_PACKAGE HPALETTE __fastcall _CreateWinPalette(Hyiedefs::TRGB *ColorMap, const int ColorMap_High, int NCol);
extern DELPHI_PACKAGE void __fastcall YUV2RGB(int y, int u, int v, Hyiedefs::TRGB &RGB);
extern DELPHI_PACKAGE void __fastcall _CopyIYU1ToBitmap(System::PByte xbits, Hyieutils::TIEBaseBitmap* fBitmap, bool dirc);
extern DELPHI_PACKAGE void __fastcall _CopyIYU2ToBitmap(System::PByte xbits, Hyieutils::TIEBaseBitmap* fBitmap, bool dirc);
extern DELPHI_PACKAGE void __fastcall _CopyUYVYToBitmap(System::PByte xbits, Hyieutils::TIEBaseBitmap* fBitmap, bool dirc);
extern DELPHI_PACKAGE void __fastcall _CopyYVYUToBitmap(System::PByte xbits, Hyieutils::TIEBaseBitmap* fBitmap, bool dirc);
extern DELPHI_PACKAGE void __fastcall _CopyY41PToBitmap(System::PByte xbits, Hyieutils::TIEBaseBitmap* fBitmap, bool dirc);
extern DELPHI_PACKAGE void __fastcall _CopyY211ToBitmap(System::PByte xbits, Hyieutils::TIEBaseBitmap* fBitmap, bool dirc);
extern DELPHI_PACKAGE void __fastcall _CopyCLJRToBitmap(System::PByte xbits, Hyieutils::TIEBaseBitmap* fBitmap, bool dirc);
extern DELPHI_PACKAGE void __fastcall _CopyYVU9ToBitmap(System::PByte xbits, Hyieutils::TIEBaseBitmap* fBitmap, bool dirc);
extern DELPHI_PACKAGE void __fastcall _CopyYV12ToBitmap(System::PByte xbits, Hyieutils::TIEBaseBitmap* fBitmap, bool dirc);
extern DELPHI_PACKAGE void __fastcall _CopyI420ToBitmap(System::PByte xbits, Hyieutils::TIEBaseBitmap* fBitmap, bool dirc);
extern DELPHI_PACKAGE void __fastcall _CopyYUY2ToBitmap(System::PByte xbits, Hyieutils::TIEBaseBitmap* fBitmap, bool dirc);
extern DELPHI_PACKAGE void __fastcall _CopyNV12ToBitmap(System::PByte xbits, Hyieutils::TIEBaseBitmap* fBitmap, bool dirc);
extern DELPHI_PACKAGE int __fastcall _CopyDIB2Bitmap(NativeUInt hbi, Vcl::Graphics::TBitmap* fBitmap, System::PByte xbits, bool unlck);
extern DELPHI_PACKAGE int __fastcall _CopyDIB2BitmapEx(NativeUInt hbi, Hyieutils::TIEBaseBitmap* fBitmap, System::PByte xbits, bool unlck);
extern DELPHI_PACKAGE void __fastcall IEDIBGamma(NativeUInt hbi, double gamma);
extern DELPHI_PACKAGE void __fastcall _CopyPolygonToPoint(Vcl::Graphics::TBitmap* Source, Hyiedefs::PPointArray Polygon, int PolygonLen, Vcl::Graphics::TBitmap* Dest, const System::Types::TPoint &Position);
extern DELPHI_PACKAGE void __fastcall _CopyPointToPolygon(Vcl::Graphics::TBitmap* Source, Hyiedefs::PPointArray Polygon, int PolygonLen, Vcl::Graphics::TBitmap* Dest, const System::Types::TPoint &Position);
extern DELPHI_PACKAGE void __fastcall _CopyBGR_RGB(Hyiedefs::PRGB dst, Hyiedefs::PRGB src, int width);
extern DELPHI_PACKAGE void __fastcall _CopyBGR_RGB48(Hyiedefs::PRGB48 dst, Hyiedefs::PRGB48 src, int width);
extern DELPHI_PACKAGE void __fastcall _BGR2RGB(Hyiedefs::PRGB buff, int width);
extern DELPHI_PACKAGE void __fastcall _BGR2RGB48(Hyiedefs::PRGB48 buff, int width);
extern DELPHI_PACKAGE void __fastcall _RGB2BGR(Hyiedefs::TRGB *ColorMap, const int ColorMap_High, int nc);
extern DELPHI_PACKAGE void __fastcall IEMorphFilter(Hyieutils::TIEBitmap* bitmap, int WindowSize, int op, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEMorphFilter_ie24RGB(Hyieutils::TIEBitmap* bitmap, int WindowSize, int op, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEMorphFilter_ie1g(Hyieutils::TIEBitmap* bitmap, int WindowSize, int op, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEmorph1bit(Hyieutils::TIEBitmap* Bitmap, int nIter, int opType, int size, bool invertFlag, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE Hyiedefs::PPointArray __fastcall _MakeMagicWandPoints(Hyieutils::TIEBitmap* fBitmap, int x, int y, bool maxfilter, int tolerance, int &pcount);
extern DELPHI_PACKAGE void __fastcall _MakeMagicWandPointsEx(Hyieutils::TIEBitmap* fBitmap, int x, int y, bool maxfilter, int tolerance, Hyieutils::TIEMask* mask, int selintensity);
extern DELPHI_PACKAGE void __fastcall _MakeMagicWandPointsEx2(Hyieutils::TIEBitmap* fBitmap, int x, int y, int tolerance, Hyieutils::TIEMask* mask, int selintensity);
extern DELPHI_PACKAGE void __fastcall _IEBmpStretch(Vcl::Graphics::TBitmap* origBmp, Vcl::Graphics::TBitmap* destBmp);
extern DELPHI_PACKAGE void __fastcall _IEBmpStretchEx(Hyieutils::TIEBaseBitmap* origBmp, Hyieutils::TIEBaseBitmap* destBmp, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE int __fastcall _ConvertXBitsToYBits(Hyiedefs::TBYTEROW &Input, Hyiedefs::TBYTEROW &Output, System::Word Xbits, System::Word Ybits, System::Word Width, Hyiedefs::TRGB *Palette, const int Palette_High, System::TObject* Quantizer);
extern DELPHI_PACKAGE void __fastcall _CopyPolygonBitmap(Vcl::Graphics::TBitmap* Dest, Vcl::Graphics::TBitmap* Source, int x1, int y1, Hyiedefs::PPointArray SelPoly, int SelPolyCount);
extern DELPHI_PACKAGE void __fastcall _Resampleie8g(Hyieutils::TIEBitmap* Src, Hyieutils::TIEBitmap* Dst, Hyiedefs::TResampleFilter FilterType);
extern DELPHI_PACKAGE void __fastcall _Resample1bitEx(Hyieutils::TIEBitmap* Src, Hyieutils::TIEBitmap* Dst, Hyiedefs::TResampleFilter FilterType);
extern DELPHI_PACKAGE void __fastcall _ResampleEx(Hyieutils::TIEBaseBitmap* SrcImg, Hyieutils::TIEBaseBitmap* DstImg, Hyieutils::TIEBitmap* SrcAlpha, Hyiedefs::TResampleFilter FilterType, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _IEEdgeDetect_ShenCastan(Hyieutils::TIEBitmap* SrcBitmap, Hyieutils::TIEBitmap* DstBitmap, double Ratio, double Smooth, int WindowSize, int ThinFactor, bool DoHysteresis, Hyiedefs::TProgressRec &Progress);
extern DELPHI_PACKAGE double __fastcall _iehough(Hyieutils::TIEBitmap* image, Hyiedefs::TProgressRec &Progress, int anglerange, double Precision);
extern DELPHI_PACKAGE double __fastcall _IESkewDetection(Hyieutils::TIEBitmap* Bitmap, int ResampleWidth, int AngleRange, double Precision, bool EdgeDetect, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _Fill(Hyieutils::TIEBitmap* bitmap, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TRGB FillColor, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _ResampleLinearEx(Hyieutils::TIEBaseBitmap* Src, Hyieutils::TIEBaseBitmap* Dst, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _ResampleProject1Bit(Hyieutils::TIEBaseBitmap* OrigBmp, Hyieutils::TIEBaseBitmap* DestBmp, bool Negative, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _ResampleProject24Bit(Hyieutils::TIEBaseBitmap* OrigBmp, Hyieutils::TIEBaseBitmap* DestBmp, bool Negative, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _ResampleLinear1BitEx(Hyieutils::TIEBitmap* Src, Hyieutils::TIEBitmap* Dst, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _ResampleLinear8g(Hyieutils::TIEBitmap* Src, Hyieutils::TIEBitmap* Dst, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _ResampleLinear16g(Hyieutils::TIEBitmap* Src, Hyieutils::TIEBitmap* Dst, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _SubResample1bitFilteredEx(Hyieutils::TIEBaseBitmap* src, int sx1, int sy1, int sx2, int sy2, Hyieutils::TIEBitmap* dst);
extern DELPHI_PACKAGE void __fastcall _CalcDensityHistogram(Hyieutils::TIEBitmap* bitmap, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender, Hyiedefs::pIntegerArray VertHist, Hyiedefs::pIntegerArray HorizHist, int norm_vert, int norm_horiz);
extern DELPHI_PACKAGE void __fastcall _IERemoveIsolatedPixels1Bit(Hyieutils::TIEBitmap* bitmap, int fSelx1, int fSely1, int fSelx2, int fSely2, int NoiseColor, int IsolationMax);
extern DELPHI_PACKAGE void __fastcall _kf_kfill(Hyieutils::TIEBitmap* bitmap, bool RetainConnectivity, bool RetainEndpoints, int MaxIterations, int WindowSize, bool InvertImage);
extern DELPHI_PACKAGE void __fastcall _IEComputeDiff(Hyieutils::TIEBitmap* x, Hyieutils::TIEBitmap* y, double &psnr_min, double &psnr_max, double &mse_min, double &mse_max, double &rmse_min, double &rmse_max, double &pae_min, double &pae_max, double &mae_min, double &mae_max, bool &equal);
extern DELPHI_PACKAGE double __fastcall IECompareImages(Hyieutils::TIEBitmap* image1, Hyieutils::TIEBitmap* image2, Hyieutils::TIEBitmap* diffmap);
extern DELPHI_PACKAGE void __fastcall _IEGammaCorrect_RGB8(Hyieutils::TIEBitmap* ABitmap, double AGamma, TIEChannels AChannel, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _IEGetHistogram(Hyieutils::TIEBitmap* Bitmap, Hyiedefs::pIntegerArray hist);
extern DELPHI_PACKAGE void __fastcall _ConvertToBWThresholdEx(Hyieutils::TIEBitmap* origbitmap, Hyieutils::TIEBitmap* destbitmap, int Threshold, Hyiedefs::TProgressRec &Progress);
extern DELPHI_PACKAGE void __fastcall _IEGBlur(Hyieutils::TIEBitmap* Bitmap, double radius, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _IEGBlurRect8(Hyieutils::TIEBitmap* Bitmap, int x1, int y1, int x2, int y2, double radius);
extern DELPHI_PACKAGE int __fastcall IESoftShadowSize(double Radius, int OffSetX, int OffSetY);
extern DELPHI_PACKAGE void __fastcall _IEAddSoftShadow(Hyieutils::TIEBitmap* bitmap, double radius, int OffSetX, int OffSetY, int Intensity, bool AdaptBitmap, Hyiedefs::TRGB ShadowColor, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _IEAddInnerShadow(Hyieutils::TIEBitmap* bitmap, double radius, int OffSetX, int OffSetY, Hyiedefs::TRGB ShadowColor, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE int __fastcall _IEAddSoftShadowRect(Hyieutils::TIEBitmap* bitmap, double radius, int OffSetX, int OffSetY, int Intensity, Hyiedefs::TRGB ShadowColor, int x1, int y1, int x2, int y2);
extern DELPHI_PACKAGE void __fastcall IEQRotate(Hyieutils::TIEBitmap* src, double angle, System::Uitypes::TColor Background, Hyiedefs::TIEAntialiasMode Filter, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEQRotateTo(Hyieutils::TIEBitmap* src, Hyieutils::TIEBitmap* dst, double angle, System::Uitypes::TColor Background, Hyiedefs::TIEAntialiasMode Filter, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEQRotate8(Hyieutils::TIEBitmap* src, double angle, int Background, Hyiedefs::TIEAntialiasMode Filter);
extern DELPHI_PACKAGE void __fastcall IEQRotateTo8(Hyieutils::TIEBitmap* src, Hyieutils::TIEBitmap* dst, double angle, int Background, Hyiedefs::TIEAntialiasMode Filter);
extern DELPHI_PACKAGE void __fastcall IEGRotate(Hyieutils::TIEBitmap* src, double angle, System::Uitypes::TColor Background, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEGRotateTo(Hyieutils::TIEBitmap* src, Hyieutils::TIEBitmap* dst, double angle, System::Uitypes::TColor Background, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _IEQResampleBytes(Hyieutils::TIEBaseBitmap* SrcImg, Hyieutils::TIEBaseBitmap* DstImg, Hyieutils::TIEBitmap* SrcAlpha, int filter, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _IEQResampleWords(Hyieutils::TIEBaseBitmap* SrcImg, Hyieutils::TIEBaseBitmap* DstImg, int filter, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _SetTransparentColors(Hyieutils::TIEBitmap* bitmap, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TRGB MinColor, Hyiedefs::TRGB MaxColor, int alpha, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _IEMedianFilter(Hyieutils::TIEBitmap* image, int WindowX, int WindowY, int Brightness, int Contrast, int Multiplier, int Threshold, TIEMedFilType MedianOp, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _IEWallisFilter(Hyieutils::TIEBitmap* image, int WinWidth, int WinHeight, int Mean, int StDev, int InGain, int Edge, int Limit, bool Thresholding, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE int __fastcall _IECalcVertOrientationFitness(Hyieutils::TIEBitmap* bitmap);
extern DELPHI_PACKAGE double __fastcall _IESkewDetectionFine(Hyieutils::TIEBitmap* Bitmap, double StartingAngle, double resolution, int range, bool maxQuality, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _Sharpen(Hyieutils::TIEBitmap* bitmap, int fSelx1, int fSely1, int fSelx2, int fSely2, int Intensity, int Neighbourhood, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _IERemoveRedEyes(Hyieutils::TIEBitmap* bitmap, int fSelx1, int fSely1, int fSelx2, int fSely2, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEFields_warp(Hyieutils::TIEBitmap* source, Hyiedefs::PIELineArray asource_lines, Hyiedefs::PIELineArray adest_lines, int num_lines, int num_frames, System::Classes::TList* outimages);
extern DELPHI_PACKAGE int __fastcall IEAddNewFilter(const TGraphFilter &filter, const System::UnicodeString name);
extern DELPHI_PACKAGE PIEGraphFilter __fastcall IEGetFilter(int index);
extern DELPHI_PACKAGE System::UnicodeString __fastcall IEGetFilterName(int index);
extern DELPHI_PACKAGE int __fastcall IEGetFiltersCount(void);
extern DELPHI_PACKAGE void __fastcall _IERoundImage(Hyieutils::TIEBitmap* ProcBitmap, int RoundWidth, int RoundHeight, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* self);
extern DELPHI_PACKAGE void __fastcall _IERadialStretch(Hyieutils::TIEBitmap* bitmap, double ARed, double BRed, double CRed, double DRed, double AGreen, double BGreen, double CGreen, double DGreen, double ABlue, double BBlue, double CBlue, double DBlue, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall _IEfsdither(Hyieutils::TIEBitmap* bitmap, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE System::Types::TRect __fastcall IEAutoCrop2(Hyieutils::TIEBitmap* bitmap, double BorderRate);
extern DELPHI_PACKAGE void __fastcall IEGetLuminosityDiff(Hyieutils::TIEBitmap* image1, Hyieutils::TIEBitmap* image2, int &Red, int &Green, int &Blue);
extern DELPHI_PACKAGE void __fastcall IEAdjustColors(Hyieutils::TIEBitmap* templateimage, Hyieutils::TIEBitmap* targetimage);
extern DELPHI_PACKAGE void __fastcall IEApplyCoefficients(Hyieutils::TIEBitmap* bitmap, double *coeff, const int coeff_High, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEGetAverageValues(Hyieutils::TIEBitmap* bitmap, Hyiedefs::TIEArrayOfDouble &avg)/* overload */;
extern DELPHI_PACKAGE void __fastcall IEWhiteBalance_grayworld(Hyieutils::TIEBitmap* bitmap, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEWhiteBalance_2(Hyieutils::TIEBitmap* bitmap, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEWhiteBalance_3(Hyieutils::TIEBitmap* bitmap, int white_x, int white_y, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEAdjustGainOffset(Hyieutils::TIEBitmap* bitmap, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IECastColor(Hyieutils::TIEBitmap* Bitmap, int x, int y, Hyiedefs::TRGB newColor, int tolerance, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IECastAlpha(Hyieutils::TIEBitmap* Bitmap, int x, int y, int newAlpha, int tolerance, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEPatternSearch(Hyieutils::TIEBitmap* InputBitmap, Hyieutils::TIEBitmap* pattern, System::Types::TRect &FoundRect, double precision, int scaleSteps);
extern DELPHI_PACKAGE void __fastcall IELLLUT(Hyieutils::TIEBitmap* SubOriginal, Hyieutils::TIEBitmap* SubFiltered, Hyieutils::TIEBitmap* Bitmap, int Neighbour, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender, int ProgressOffset, double ProgressMultiplier);
extern DELPHI_PACKAGE void __fastcall IEACE(Hyieutils::TIEBitmap* OrigBitmap, int subwidth, int Slope, int Cut, int Neighbour, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEAutoSharp(Hyieutils::TIEBitmap* bitmap, int Intensity, double rate, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IERetinex(Hyieutils::TIEBitmap* bitmap, int ScaleCount, int ScaleCurve, float Variance, int ScaleHigh, bool Luma, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEShift(Hyieutils::TIEBitmap* Bitmap, int offsetx, int offsety, int channel, int FillValue, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEChangeYCbCrCoefficients(Hyieutils::TIEBitmap* Bitmap, double srcLumaRed, double srcLumaGreen, double srcLumaBlue, double dstLumaRed, double dstLumaGreen, double dstLumaBlue);
extern DELPHI_PACKAGE void __fastcall IERGBtoHSB(const System::Byte cRed, const System::Byte cGreen, const System::Byte cBlue, System::Word &H, System::Word &S, System::Word &B);
extern DELPHI_PACKAGE void __fastcall IEHSBtoRGB(const System::Word H, const System::Word S, const System::Word B, System::Byte &cRed, System::Byte &cGreen, System::Byte &cBlue);
extern DELPHI_PACKAGE void __fastcall IEAdjustSaturation(Hyieutils::TIEBitmap* Src, int Amount, const Hyiedefs::TProgressRec &pr);
extern DELPHI_PACKAGE void __fastcall IEAdjustTint(Hyieutils::TIEBitmap* Src, int Amount, bool UseFixedColor, Hyiedefs::TRGB FixedColorStart, Hyiedefs::TRGB FixedColorEnd, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEAdjustBrightnessContrastSaturation(Hyieutils::TIEBitmap* Bitmap, int b, int c, int s, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEContrast2(Hyieutils::TIEBitmap* src, float z, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEAutoSBHist(Hyieutils::TIEBitmap* src, float z1, float z2, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEDisposeChannels(Hyieutils::TIEBitmap* Bitmap, System::UnicodeString newDispo, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE System::Classes::TList* __fastcall IEVectorize(Hyieutils::TIEMask* bitmap, int x1, int y1, int x2, int y2, int SCALE = 0x4);
extern DELPHI_PACKAGE System::Classes::TList* __fastcall IESeparateObjects(Hyieutils::TIEBitmap* Bitmap, bool MergeCommonAreas, int Quality, bool UseBackgroundColor, Hyiedefs::TRGB BackgroundColorBegin, Hyiedefs::TRGB BackgroundColorEnd);
extern DELPHI_PACKAGE void __fastcall IESobel(Hyieutils::TIEBitmap* bitmap, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IELuminanceEnhancement(Hyieutils::TIEBitmap* Bitmap, double Gamma, int Saturation, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE System::Types::TRect __fastcall IEGetVisibleArea(Hyieutils::TIEBitmap* Bitmap, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IETEAEncipher64(Iefft::pdwordarray v, Iefft::pdwordarray w, Iefft::pdwordarray k);
extern DELPHI_PACKAGE void __fastcall IETEADecipher64(Iefft::pdwordarray v, Iefft::pdwordarray w, Iefft::pdwordarray k);
extern DELPHI_PACKAGE void __fastcall IEEncipherBitmap_TEA(Hyieutils::TIEBitmap* Bitmap, Iefft::pdwordarray key, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEDecipherBitmap_TEA(Hyieutils::TIEBitmap* Bitmap, Iefft::pdwordarray key, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE System::UnicodeString __fastcall IEGraphFilterToString(const TGraphFilter &filter);
extern DELPHI_PACKAGE void __fastcall IELocalBinarize(Hyieutils::TIEBitmap* InBitmap, Hyieutils::TIEBitmap* OutBitmap, int WinSize, TIEThreshMode Mode, int Offset, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE double __fastcall IECompareHistograms(TIEHistogram h1, TIEHistogram h2, TIECmpMode Mode, int channel);
extern DELPHI_PACKAGE double __fastcall IECompareImagesHistogram(Hyieutils::TIEBitmap* bitmap1, Hyieutils::TIEBitmap* bitmap2, TIECmpMode Mode, bool GrayScale);
extern DELPHI_PACKAGE void __fastcall IEReflectionEffect(Hyieutils::TIEBitmap* bitmap, int minAlpha, int maxAlpha, int percentage, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEPerspectiveTransform(Hyieutils::TIEBitmap* SrcBitmap, Hyieutils::TIEBitmap* DstBitmap, int xx0, int yy0, int xx1, int yy1, int xx2, int yy2, int xx3, int yy3, int alphaMin = 0xffffffff, int alphaMax = 0xffffffff, bool mergeAlpha = false, int alpha = 0xff);
extern DELPHI_PACKAGE void __fastcall IEProjectBitmap1(Hyieutils::TIEBitmap* Bitmap, Hyieutils::TIEBitmap* DstBitmap, int centerDstX, int centerDstY, int destWidth, int destHeight, int translateX, int translateY, double depth, double rotateX, double rotateY, int specularAlphaMin, int specularAlphaMax, Hyiedefs::TIEQuadCoords &outCoords, TIEProjectBitmapOp op, bool mergeAlpha, int alpha);
extern DELPHI_PACKAGE void __fastcall IEProjectBitmap2(Hyieutils::TIEBitmap* Bitmap, Hyieutils::TIEBitmap* DstBitmap, int centerDstX, int centerDstY, int dstWidth, int dstHeight, int translateX, int translateY, double depth, double rotateX, double rotateY, int specularAlphaMin, int specularAlphaMax, Hyiedefs::TIEQuadCoords &outCoords, TIEProjectBitmapOp op, bool mergeAlpha, int alpha);
extern DELPHI_PACKAGE void __fastcall IEAdjustTemperature(Hyieutils::TIEBitmap* bitmap, int x1, int y1, int x2, int y2, int temperature, Hyiedefs::TIEProgressEvent fOnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEMotionBlur(Hyieutils::TIEBitmap* bitmap, double angle, int radius, int sigma, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IERandom(Hyieutils::TIEBitmap* bitmap, double mean, double stdDev, int x1, int y1, int x2, int y2, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEMapGrayToColor(Hyieutils::TIEBitmap* Bitmap, Hyiedefs::TRGB *map, const int map_High, int x1, int y1, int x2, int y2, Hyiedefs::TIEProgressEvent OnProgress, System::TObject* Sender);
extern DELPHI_PACKAGE void __fastcall IEInitialize_imageenproc(void);
extern DELPHI_PACKAGE void __fastcall IEFinalize_imageenproc(void);
}	/* namespace Imageenproc */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_IMAGEENPROC)
using namespace Imageenproc;
#endif
#pragma pack(pop)
#pragma option pop

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