// CodeGear C++Builder // Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc. // All rights reserved // (DO NOT EDIT: machine generated header) 'imageenio.pas' rev: 37.00 (Windows) #ifndef imageenioHPP #define imageenioHPP #pragma delphiheader begin #pragma option push #if defined(__BORLANDC__) && !defined(__clang__) #pragma option -w- // All warnings off #pragma option -Vx // Zero-length empty class member #endif #pragma pack(push,8) #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //-- user supplied ----------------------------------------------------------- namespace Imageenio { //-- forward type declarations ----------------------------------------------- struct TStreamJpegHeader; struct PCXSHead; struct TIFFSHead; struct TAviStreamInfoA_Ex; struct TAviStreamInfoW_Ex; class DELPHICLASS TIOPrintPreviewParams; class DELPHICLASS TImageEnIO; //-- type declarations ------------------------------------------------------- enum DECLSPEC_DENUM TIETextFormat : unsigned char { ietfPascal, ietfHex, ietfBase64, ietfASCIIArt }; typedef void __fastcall (__closure *TIEAcquireBitmapEvent)(System::TObject* Sender, Iexbitmaps::TIEBitmap* ABitmap, int DpiX, int DpiY, bool &Handled); typedef void __fastcall (__closure *TIEAfterAcquireBitmapEvent)(System::TObject* Sender, int index); struct DECLSPEC_DRECORD TStreamJpegHeader { public: System::StaticArray ID; int dim; }; struct DECLSPEC_DRECORD PCXSHead { public: System::StaticArray ID; int dim; }; struct DECLSPEC_DRECORD TIFFSHead { public: System::StaticArray ID; int dim; }; enum DECLSPEC_DENUM TIEVerticalPos : unsigned char { ievpTop, ievpCenter, ievpBottom }; enum DECLSPEC_DENUM TIEHorizontalPos : unsigned char { iehpLeft, iehpCenter, iehpRight }; enum DECLSPEC_DENUM TIESize : unsigned char { iesNormal, iesFitToPage, iesFitToPageStretch, iesFillPage, iesSpecifiedSize, iesMultiplePages }; enum DECLSPEC_DENUM TIECreateAVIFileResult : unsigned char { ieaviOK, ieaviNOCOMPRESSOR, ieaviMEMORY, ieaviUNSUPPORTED }; typedef void __fastcall (__closure *TIEIOPreviewEvent)(System::TObject* Sender, Vcl::Forms::TForm* PreviewForm); typedef void __fastcall (__closure *TIEDoPreviewsEvent)(System::TObject* Sender, bool &Handled); enum DECLSPEC_DENUM TIECSSource : unsigned char { iecsScreen, iecsPrimary, iecsForegroundWindow, iecsForegroundWindowClient }; enum DECLSPEC_DENUM TIEDialogType : unsigned char { iedtDialog, iedtMaxi }; enum DECLSPEC_DENUM TIEDialogsMeasureUnit : unsigned char { ieduInches, ieduCm, ieduSelectableDefInches, ieduSelectableDefCm }; struct DECLSPEC_DRECORD TAviStreamInfoA_Ex { public: unsigned fccType; unsigned fccHandler; unsigned dwFlags; unsigned dwCaps; System::Word wPriority; System::Word wLanguage; unsigned dwScale; unsigned dwRate; unsigned dwStart; unsigned dwLength; unsigned dwInitialFrames; unsigned dwSuggestedBufferSize; unsigned dwQuality; unsigned dwSampleSize; System::Types::TRect rcFrame; unsigned dwEditCount; unsigned dwFormatChangeCount; System::StaticArray szName; }; struct DECLSPEC_DRECORD TAviStreamInfoW_Ex { public: unsigned fccType; unsigned fccHandler; unsigned dwFlags; unsigned dwCaps; System::Word wPriority; System::Word wLanguage; unsigned dwScale; unsigned dwRate; unsigned dwStart; unsigned dwLength; unsigned dwInitialFrames; unsigned dwSuggestedBufferSize; unsigned dwQuality; unsigned dwSampleSize; System::Types::TRect rcFrame; unsigned dwEditCount; unsigned dwFormatChangeCount; System::StaticArray szName; }; typedef TAviStreamInfoW_Ex TAviStreamInfo_Ex; enum DECLSPEC_DENUM TIOPrintPreviewPosition : unsigned char { ppTopLeft, ppTop, ppTopRight, ppLeft, ppCenter, ppRight, ppBottomLeft, ppBottom, ppBottomRight }; enum DECLSPEC_DENUM TIOPrintPreviewSize : unsigned char { psNormal, psFitToPage, psStretchToPage, psFillPage, psSpecifiedSize, psMultiplePages }; enum DECLSPEC_DENUM TIOPrintPreviewThumbnailStyle : unsigned char { ptFlat, ptSoftShadow, ptBorder }; class PASCALIMPLEMENTATION TIOPrintPreviewParams : public System::TObject { typedef System::TObject inherited; private: double fMarginTop; double fMarginLeft; double fMarginRight; double fMarginBottom; TIOPrintPreviewPosition fPosition; TIOPrintPreviewSize fSize; double fWidth; double fHeight; double fGamma; bool fPrintSelected; bool fPrintThumbnails; int fThumbnailColumns; int fThumbnailRows; double fThumbnailSpacing; TIOPrintPreviewThumbnailStyle fThumbnailStyle; bool fThumbnailShowText; int fDlgWidth; int fDlgHeight; public: __fastcall TIOPrintPreviewParams(); __property double MarginTop = {read=fMarginTop, write=fMarginTop}; __property double MarginLeft = {read=fMarginLeft, write=fMarginLeft}; __property double MarginRight = {read=fMarginRight, write=fMarginRight}; __property double MarginBottom = {read=fMarginBottom, write=fMarginBottom}; __property TIOPrintPreviewPosition Position = {read=fPosition, write=fPosition, nodefault}; __property TIOPrintPreviewSize Size = {read=fSize, write=fSize, nodefault}; __property double Width = {read=fWidth, write=fWidth}; __property double Height = {read=fHeight, write=fHeight}; __property double Gamma = {read=fGamma, write=fGamma}; __property bool PrintSelected = {read=fPrintSelected, write=fPrintSelected, nodefault}; __property bool PrintThumbnails = {read=fPrintThumbnails, write=fPrintThumbnails, nodefault}; __property int ThumbnailColumns = {read=fThumbnailColumns, write=fThumbnailColumns, nodefault}; __property int ThumbnailRows = {read=fThumbnailRows, write=fThumbnailRows, nodefault}; __property double ThumbnailSpacing = {read=fThumbnailSpacing, write=fThumbnailSpacing}; __property TIOPrintPreviewThumbnailStyle ThumbnailStyle = {read=fThumbnailStyle, write=fThumbnailStyle, nodefault}; __property bool ThumbnailShowText = {read=fThumbnailShowText, write=fThumbnailShowText, nodefault}; __property int DlgWidth = {read=fDlgWidth, write=fDlgWidth, nodefault}; __property int DlgHeight = {read=fDlgHeight, write=fDlgHeight, nodefault}; void __fastcall SaveToFile(const System::WideString FileName); void __fastcall LoadFromFile(const System::WideString FileName); void __fastcall SaveToStream(System::Classes::TStream* Stream); void __fastcall LoadFromStream(System::Classes::TStream* Stream); void __fastcall SetProperty(System::WideString Prop, System::WideString Value); System::WideString __fastcall GetProperty(const System::WideString Prop); public: /* TObject.Destroy */ inline __fastcall virtual ~TIOPrintPreviewParams() { } }; enum DECLSPEC_DENUM TIEIOSeekDestination : unsigned char { ieioSeekFirst, ieioSeekPrior, ieioSeekNext, ieioSeekLast }; class PASCALIMPLEMENTATION TImageEnIO : public System::Classes::TComponent { typedef System::Classes::TComponent inherited; private: Vcl::Graphics::TBitmap* fBitmap; Iexbitmaps::TIEBitmap* fIEBitmap; bool fIEBitmapCreated; Ieview::TIEView* fImageEnView; void *fImageEnViewBitmapChangeHandle; Vcl::Extctrls::TImage* fTImage; System::Uitypes::TColor fBackground; Hyieutils::TIOPreviewsParams fPreviewsParams; bool fSimplifiedParamsDialogs; TIEDoPreviewsEvent fOnDoPreviews; bool fChangeBackground; Iexacquire::TIEAcquireParams* fAcquireParams; Ietwain::TIETwainParams* fTwainParams; Iexdcim::TIEDcimAcquire* fDCIMParams; bool fStreamHeaders; Vcl::Graphics::TFont* fPreviewFont; bool fPreviewFontEnabled; TIEIOPreviewEvent fOnIOPreview; TIEDialogsMeasureUnit fDialogsMeasureUnit; bool fAutoAdjustDPI; bool fFilteredAdjustDPI; void *fAVI_avf; void *fAVI_avs; void *fAVI_avs1; void *fAVI_gf; TAviStreamInfoW_Ex fAVI_psi; void *fAVI_popts; int fAVI_idx; Ieds::TIEDirectShow* fOpenMediaFile; double fOpenMediaFileRate; int fOpenMediaFileMul; void *fPS_handle; Hyieutils::TIEWideFileStream* fPS_stream; void *fPDF_handle; Hyieutils::TIEWideFileStream* fPDF_stream; System::Classes::TList* fAsyncThreads; Winapi::Windows::THandle fAsyncThreadsFinishEvent; System::Syncobjs::TCriticalSection* fAsyncThreadsCS; bool fAsyncMode; Hyiedefs::TResampleFilter fPrintingFilterOnSubsampling; void *fgrec; Iewia::TIEWia* fWIA; Ieds::TIEDirectShow* fDShow; Iemmf::TIEMediaFoundationSourceReader* fMediaFoundationSourceReader; Hyieutils::TIEDitherMethod fDefaultDitherMethod; bool fResetPrinter; TIOPrintPreviewParams* fPrintPreviewParams; bool __fastcall IsInsideAsyncThreads(); void __fastcall SetAttachedBitmap(Vcl::Graphics::TBitmap* atBitmap); void __fastcall SetAttachedImageEn(Ieview::TIEView* atImageEn); System::Uitypes::TColor __fastcall GetReBackground(); 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 SetIOPreviewParams(Hyieutils::TIOPreviewsParams v); Hyieutils::TIOPreviewsParams __fastcall GetIOPreviewParams(); void __fastcall AdjustDPI(); int __fastcall GetAsyncRunning(); int __fastcall GetThreadsCount(); void __fastcall SetDefaultDitherMethod(Hyieutils::TIEDitherMethod Value); bool __fastcall WiaOnProgress(int Percentage); void __fastcall SetPrintLogFile(System::UnicodeString v); System::UnicodeString __fastcall GetPrintLogFile(); void __fastcall UpdateAPP138BimResolution(); void __fastcall ParamsFromMetaFile(System::Classes::TStream* stream); System::UnicodeString __fastcall GetImageEnVersion(); void __fastcall SetImageEnVersion(System::UnicodeString Value); void __fastcall SetAborting(bool Value); Iexbitmaps::TIOParams* __fastcall GetParams(); bool __fastcall ParamsFromFileOrStream(const System::WideString FileName, System::Classes::TStream* Stream, Hyieutils::TIOFileType Format); System::WideString __fastcall GetProxyAddress(); System::WideString __fastcall GetProxyUser(); System::WideString __fastcall GetProxyPassword(); void __fastcall SetProxyAddress(System::WideString Value); void __fastcall SetProxyUser(System::WideString Value); void __fastcall SetProxyPassword(System::WideString Value); void __fastcall CheckHaveValidBitmap(); void __fastcall ParamsFromStreamIEN(System::Classes::TStream* Stream, bool LoadThumbnail = false); void __fastcall GeneratePrintBitmap(bool PrintAnnotations, bool PrintLayers); void __fastcall ResetModified(bool AllLayers = false); protected: bool fAborting; Hyiedefs::TIEProgressEvent fOnIntProgress; Hyiedefs::TIEProgressEvent fOnProgress; System::Classes::TNotifyEvent fOnFinishWork; TIEAcquireBitmapEvent fOnAcquireBitmap; System::Classes::TNotifyEvent fOnAcquireClose; virtual void __fastcall Notification(System::Classes::TComponent* AComponent, System::Classes::TOperation Operation); void __fastcall OnBitmapChange(System::TObject* Sender, bool destroying); bool __fastcall LoadFromStreamJ2000(System::Classes::TStream* Stream); void __fastcall SaveToStreamJ2000(System::Classes::TStream* Stream, int format); void __fastcall SetBitmap(Vcl::Graphics::TBitmap* bmp); void __fastcall SetIEBitmap(Iexbitmaps::TIEBitmap* bmp); void __fastcall SetAttachedIEBitmap(Iexbitmaps::TIEBitmap* bmp); virtual void __fastcall TWMultiCallBack(Iexbitmaps::TIEBitmap* Bitmap, System::TObject* &IOParams, int ImDpiX, int ImDpiY); virtual void __fastcall TWCloseCallBack(); DYNAMIC void __fastcall DoAcquireBitmap(Iexbitmaps::TIEBitmap* ABitmap, int ImDpiX, int ImDpiY, bool &Handled); virtual void __fastcall DoFinishWork(); virtual Vcl::Graphics::TBitmap* __fastcall GetBitmap(); bool __fastcall MakeConsistentBitmap(Hyieutils::TIEPixelFormatSet allowedFormats); virtual Iewia::TIEWia* __fastcall GetWIAParams(); virtual Ieds::TIEDirectShow* __fastcall GetDShowParams(); Iemmf::TIEMediaFoundationSourceReader* __fastcall GetMediaFoundationSourceReader(); int __fastcall SyncLoadFromStreamGIF(System::Classes::TStream* Stream); bool __fastcall SyncLoadFromStreamPCX(System::Classes::TStream* Stream, bool streamhead); bool __fastcall SyncLoadFromStreamDCX(System::Classes::TStream* Stream); int __fastcall SyncLoadFromStreamTIFF(System::Classes::TStream* Stream, bool streamhead); bool __fastcall SyncLoadFromStreamBMP(System::Classes::TStream* Stream); void __fastcall SyncSaveToStreamJpeg(System::Classes::TStream* Stream, bool streamhead); void __fastcall SyncSaveToStreamPS(System::Classes::TStream* Stream); void __fastcall SyncSaveToStreamPDF(System::Classes::TStream* Stream); void __fastcall SyncSaveToStreamDICOM(System::Classes::TStream* Stream); void __fastcall SyncSaveToStreamBMP(System::Classes::TStream* Stream); void __fastcall SyncSaveToStreamDCX(System::Classes::TStream* Stream); bool __fastcall SyncLoadFromStreamPSD(System::Classes::TStream* Stream); bool __fastcall SyncLoadFromStreamCUR(System::Classes::TStream* Stream); bool __fastcall SyncLoadFromStreamICO(System::Classes::TStream* Stream); bool __fastcall SyncLoadFromStreamHDP(System::Classes::TStream* Stream); bool __fastcall SyncLoadFromStreamRAW(System::Classes::TStream* Stream); bool __fastcall SyncLoadFromStreamBMPRAW(System::Classes::TStream* Stream); void __fastcall SyncSaveToStreamBMPRAW(System::Classes::TStream* Stream); bool __fastcall SyncLoadFromStreamTGA(System::Classes::TStream* Stream); bool __fastcall SyncLoadFromStreamPNG(System::Classes::TStream* Stream); bool __fastcall SyncLoadFromStreamPXM(System::Classes::TStream* Stream); bool __fastcall SyncLoadFromStreamWBMP(System::Classes::TStream* Stream); bool __fastcall SyncLoadFromStreamJPEG(System::Classes::TStream* Stream, bool bCheckHeader); bool __fastcall SyncLoadFromStreamDICOM(System::Classes::TStream* Stream); void __fastcall CheckDPI(); void __fastcall SetNativePixelFormat(bool value); bool __fastcall GetNativePixelFormat(); virtual void __fastcall DoIntProgress(System::TObject* Sender, int per); void __fastcall SyncSaveToStreamPSD(System::Classes::TStream* Stream); void __fastcall SyncSaveToStreamHDP(System::Classes::TStream* Stream); bool __fastcall LoadVectFile(const System::WideString fileName, Hyieutils::TIOFileType ft); bool __fastcall LoadVectStream(System::Classes::TStream* Stream, Hyieutils::TIOFileType ft); Iexacquire::TIEAcquireSource __fastcall GetSelectedAcquireSource(); public: Iexbitmaps::TIOParams* fParams; Iexbitmaps::TIEBitmap* fPrintBitmap; __fastcall virtual TImageEnIO(System::Classes::TComponent* Owner); __fastcall TImageEnIO(Iexbitmaps::TIEBitmap* Bitmap)/* overload */; __fastcall TImageEnIO(Vcl::Graphics::TBitmap* Bitmap)/* overload */; __fastcall virtual ~TImageEnIO(); __property Vcl::Graphics::TBitmap* AttachedBitmap = {read=fBitmap, write=SetAttachedBitmap}; __property Iexbitmaps::TIEBitmap* AttachedIEBitmap = {read=fIEBitmap, write=SetAttachedIEBitmap}; void __fastcall Update(); void __fastcall SyncGetHandle(); __property bool ChangeBackground = {read=fChangeBackground, write=fChangeBackground, nodefault}; __property int ThreadsCount = {read=GetThreadsCount, nodefault}; __property Hyieutils::TIEDitherMethod DefaultDitherMethod = {read=fDefaultDitherMethod, write=SetDefaultDitherMethod, nodefault}; virtual bool __fastcall DoPreviews(Hyieutils::TPreviewParams pp = (Hyieutils::TPreviewParams() << Hyieutils::Hyieutils__2::ppALL )); __property Vcl::Graphics::TBitmap* Bitmap = {read=GetBitmap, write=SetBitmap}; __property Iexbitmaps::TIEBitmap* IEBitmap = {read=fIEBitmap, write=SetIEBitmap}; __property Iexbitmaps::TIOParams* Params = {read=GetParams}; void __fastcall AssignParams(System::TObject* Source); void __fastcall RecreatedTImageEnViewHandle(); void __fastcall LoadFromResource(const System::WideString ModulePath, const System::UnicodeString ResourceType, const System::UnicodeString ResourceName, Hyieutils::TIOFileType Format); bool __fastcall LoadFromFileIEN(const System::WideString FileName, bool Append = false); bool __fastcall LoadFromStreamIEN(System::Classes::TStream* Stream, bool Append = false); void __fastcall SaveToStreamIEN(System::Classes::TStream* Stream); void __fastcall SaveToFileIEN(const System::WideString FileName); void __fastcall SaveToStreamSVG(System::Classes::TStream* Stream); void __fastcall SaveToFileSVG(const System::WideString FileName); void __fastcall SaveToFileJpeg(const System::WideString FileName); bool __fastcall LoadFromFileJpeg(const System::WideString FileName); void __fastcall SaveToStreamJpeg(System::Classes::TStream* Stream); bool __fastcall LoadFromStreamJpeg(System::Classes::TStream* Stream); bool __fastcall InjectJpegIPTC(const System::WideString FileName); bool __fastcall InjectJpegIPTCStream(System::Classes::TStream* InputStream, System::Classes::TStream* OutputStream); bool __fastcall InjectJpegEXIF(const System::WideString FileName); bool __fastcall InjectJpegEXIFStream(System::Classes::TStream* InputStream, System::Classes::TStream* OutputStream); bool __fastcall LoadFromFileDCX(const System::WideString FileName); bool __fastcall LoadFromStreamDCX(System::Classes::TStream* Stream); void __fastcall SaveToStreamDCX(System::Classes::TStream* Stream); void __fastcall SaveToFileDCX(const System::WideString FileName); void __fastcall InsertToFileDCX(const System::WideString FileName); bool __fastcall LoadFromFileJP2(const System::WideString FileName); bool __fastcall LoadFromFileJ2K(const System::WideString FileName); bool __fastcall LoadFromStreamJP2(System::Classes::TStream* Stream); bool __fastcall LoadFromStreamJ2K(System::Classes::TStream* Stream); void __fastcall SaveToStreamJP2(System::Classes::TStream* Stream); void __fastcall SaveToStreamJ2K(System::Classes::TStream* stream); void __fastcall SaveToFileJP2(const System::WideString FileName); void __fastcall SaveToFileJ2K(const System::WideString FileName); int __fastcall LoadFromFileGIF(const System::WideString FileName); void __fastcall SaveToFileGIF(const System::WideString FileName); int __fastcall InsertToFileGIF(const System::WideString FileName); int __fastcall LoadFromStreamGIF(System::Classes::TStream* Stream); void __fastcall SaveToStreamGIF(System::Classes::TStream* Stream); int __fastcall ReplaceFileGIF(const System::WideString FileName); void __fastcall SaveToStreamPCX(System::Classes::TStream* Stream); bool __fastcall LoadFromStreamPCX(System::Classes::TStream* Stream); void __fastcall SaveToFilePCX(const System::WideString FileName); bool __fastcall LoadFromFilePCX(const System::WideString FileName); int __fastcall LoadFromStreamTIFF(System::Classes::TStream* Stream); void __fastcall SaveToStreamTIFF(System::Classes::TStream* Stream); int __fastcall LoadFromFileTIFF(const System::WideString FileName); void __fastcall SaveToFileTIFF(const System::WideString FileName); int __fastcall InsertToFileTIFF(const System::WideString FileName); int __fastcall InsertToStreamTIFF(System::Classes::TStream* Stream); int __fastcall ReplaceFileTIFF(const System::WideString FileName); int __fastcall ReplaceStreamTIFF(System::Classes::TStream* Stream); bool __fastcall InjectTIFFEXIF(const System::WideString FileName, int pageIndex = 0x0)/* overload */; bool __fastcall InjectTIFFEXIF(const System::WideString InputFileName, const System::WideString OutputFileName, int pageIndex = 0x0)/* overload */; bool __fastcall InjectTIFFEXIF(System::Classes::TStream* InputStream, System::Classes::TStream* OutputStream, int pageIndex = 0x0)/* overload */; void __fastcall SaveToStreamBMP(System::Classes::TStream* Stream); bool __fastcall LoadFromStreamBMP(System::Classes::TStream* Stream); void __fastcall SaveToFileBMP(const System::WideString FileName); bool __fastcall LoadFromFileBMP(const System::WideString FileName); bool __fastcall LoadFromFileICO(const System::WideString FileName); bool __fastcall LoadFromStreamICO(System::Classes::TStream* Stream); void __fastcall SaveToStreamICO(System::Classes::TStream* Stream); void __fastcall SaveToFileICO(const System::WideString FileName); bool __fastcall LoadFromFileCUR(const System::WideString FileName); bool __fastcall LoadFromStreamCUR(System::Classes::TStream* Stream); bool __fastcall LoadFromFilePNG(const System::WideString FileName); bool __fastcall LoadFromStreamPNG(System::Classes::TStream* Stream); void __fastcall SaveToFilePNG(const System::WideString FileName); void __fastcall SaveToStreamPNG(System::Classes::TStream* Stream); bool __fastcall LoadFromFileDICOM(const System::WideString FileName); bool __fastcall LoadFromStreamDICOM(System::Classes::TStream* Stream); void __fastcall SaveToStreamDICOM(System::Classes::TStream* Stream); void __fastcall SaveToFileDICOM(const System::WideString FileName); bool __fastcall LoadFromFileTGA(const System::WideString FileName); bool __fastcall LoadFromStreamTGA(System::Classes::TStream* Stream); void __fastcall SaveToFileTGA(const System::WideString FileName); void __fastcall SaveToStreamTGA(System::Classes::TStream* Stream); bool __fastcall ImportMetafile(const System::WideString FileName, int Width = 0xffffffff, int Height = 0xffffffff, bool WithAlpha = true)/* overload */; bool __fastcall ImportMetafile(System::Classes::TStream* Stream, int Width = 0xffffffff, int Height = 0xffffffff, bool WithAlpha = true)/* overload */; bool __fastcall ImportMetafile(Vcl::Graphics::TMetafile* meta, int Width = 0xffffffff, int Height = 0xffffffff, bool WithAlpha = true)/* overload */; bool __fastcall ImportMetafile(Iegdiplus::TIEMetafile* meta, int Width = 0xffffffff, int Height = 0xffffffff, bool WithAlpha = true)/* overload */; void __fastcall MergeMetafile(const System::WideString FileName, int x, int y, int Width = 0xffffffff, int Height = 0xffffffff); bool __fastcall LoadFromFilePXM(const System::WideString FileName); bool __fastcall LoadFromStreamPXM(System::Classes::TStream* Stream); void __fastcall SaveToFilePXM(const System::WideString FileName); void __fastcall SaveToStreamPXM(System::Classes::TStream* Stream); int __fastcall OpenAVIFile(const System::WideString FileName); void __fastcall CloseAVIFile(); bool __fastcall LoadFromAVI(int FrameIndex); TIECreateAVIFileResult __fastcall CreateAVIFile(const System::WideString FileName, double rate = 1.500000E+01, const System::AnsiString codec = "DIB "); void __fastcall SaveToAVI(); bool __fastcall IsOpenAVI(); int __fastcall OpenMediaFile(const System::WideString FileName); void __fastcall CloseMediaFile(); void __fastcall LoadFromMediaFile(int FrameIndex); bool __fastcall IsOpenMediaFile(); bool __fastcall LoadFromFileWBMP(const System::WideString FileName); bool __fastcall LoadFromStreamWBMP(System::Classes::TStream* Stream); void __fastcall SaveToFileWBMP(const System::WideString FileName); void __fastcall SaveToStreamWBMP(System::Classes::TStream* Stream); void __fastcall CreatePSFile(const System::WideString FileName); void __fastcall SaveToPS(); void __fastcall ClosePSFile(); void __fastcall SaveToStreamPS(System::Classes::TStream* Stream); void __fastcall SaveToFilePS(const System::WideString FileName); void __fastcall CreatePDFFile(const System::WideString FileName); void __fastcall SaveToPDF(); void __fastcall ClosePDFFile(); void __fastcall SaveToStreamPDF(System::Classes::TStream* Stream); void __fastcall SaveToFilePDF(const System::WideString FileName); bool __fastcall LoadFromStreamRAW(System::Classes::TStream* Stream); bool __fastcall LoadFromFileRAW(const System::WideString FileName); bool __fastcall LoadJpegFromFileCRW(const System::WideString FileName); bool __fastcall LoadFromStreamBMPRAW(System::Classes::TStream* Stream); bool __fastcall LoadFromFileBMPRAW(const System::WideString FileName); void __fastcall SaveToStreamBMPRAW(System::Classes::TStream* Stream); void __fastcall SaveToFileBMPRAW(const System::WideString FileName); bool __fastcall LoadFromStreamPSD(System::Classes::TStream* Stream); bool __fastcall LoadFromFilePSD(const System::WideString FileName); void __fastcall SaveToStreamPSD(System::Classes::TStream* Stream); void __fastcall SaveToFilePSD(const System::WideString FileName); bool __fastcall LoadFromStreamHDP(System::Classes::TStream* Stream); bool __fastcall LoadFromFileHDP(const System::WideString FileName); void __fastcall SaveToStreamHDP(System::Classes::TStream* Stream); void __fastcall SaveToFileHDP(const System::WideString FileName); DYNAMIC bool __fastcall LoadFromFile(const System::WideString FileName, Hyieutils::TIOFileType FileFormat)/* overload */; DYNAMIC bool __fastcall LoadFromFile(const System::WideString FileName, bool bCheckUnknown = true)/* overload */; DYNAMIC bool __fastcall LoadFromFileAuto(const System::WideString FileName); DYNAMIC void __fastcall SaveToFile(const System::WideString FileName, Hyieutils::TIOFileType ImageFormat = 0xffffffff); DYNAMIC void __fastcall SaveToText(const System::WideString FileName, Hyieutils::TIOFileType ImageFormat = 0xffffffff, TIETextFormat TextFormat = (TIETextFormat)(0x3))/* overload */; DYNAMIC void __fastcall SaveToText(System::Classes::TStream* Stream, Hyieutils::TIOFileType ImageFormat = 0xffffffff, TIETextFormat TextFormat = (TIETextFormat)(0x3))/* overload */; void __fastcall LoadFromText(const System::WideString FileName, TIETextFormat TextFormat = (TIETextFormat)(0x2))/* overload */; void __fastcall LoadFromText(System::Classes::TStream* Stream, TIETextFormat TextFormat = (TIETextFormat)(0x2))/* overload */; DYNAMIC void __fastcall LoadFromBuffer(void * Buffer, int BufferSize, Hyieutils::TIOFileType Format = 0x0); DYNAMIC bool __fastcall LoadFromFileFormat(const System::WideString FileName, Hyieutils::TIOFileType FileFormat); DYNAMIC bool __fastcall LoadFromStreamFormat(System::Classes::TStream* Stream, Hyieutils::TIOFileType FileFormat); __property bool Aborting = {read=fAborting, write=SetAborting, nodefault}; DYNAMIC bool __fastcall ParamsFromFile(const System::WideString FileName, Hyieutils::TIOFileType Format)/* overload */; DYNAMIC bool __fastcall ParamsFromFile(const System::WideString FileName, bool bUseExtension = false)/* overload */; DYNAMIC bool __fastcall ParamsFromStream(System::Classes::TStream* Stream, Hyieutils::TIOFileType Format = 0x0); DYNAMIC bool __fastcall ParamsFromBuffer(void * Buffer, int BufferSize, Hyieutils::TIOFileType Format = 0x0); DYNAMIC bool __fastcall ParamsFromFileFormat(const System::WideString FileName, Hyieutils::TIOFileType Format); DYNAMIC bool __fastcall ParamsFromStreamFormat(System::Classes::TStream* Stream, Hyieutils::TIOFileType Format); DYNAMIC bool __fastcall LoadFromStream(System::Classes::TStream* Stream, Hyieutils::TIOFileType FileFormat = 0x0); bool __fastcall LoadThumbnailFromExplorer(const System::WideString FileName, int iDesiredWidth = 0x78, int iDesiredHeight = 0x78); DYNAMIC void __fastcall SaveToStream(System::Classes::TStream* Stream, Hyieutils::TIOFileType FileType); int __fastcall Seek(TIEIOSeekDestination Destination, System::WideString FileName = System::WideString()); System::WideString __fastcall ExecuteOpenDialog(const System::WideString InitialDir = System::WideString(), const System::WideString InitialFileName = System::WideString(), bool AlwaysAnimate = false, int FilterIndex = 0x0, const System::WideString ExtendedFilters = System::WideString(), const System::WideString Title = System::WideString(), const System::WideString Filter = System::WideString(), Hyieutils::TIOFileType DefaultFilter = 0xffffffff, Hyieutils::TIOFileType LimitToFileType = 0xffffffff)/* overload */; System::WideString __fastcall ExecuteOpenDialog(const System::WideString Title, Hyieutils::TIOFileType DefaultFilter, Hyieutils::TIOFileType LimitToFileType = 0xffffffff, bool AlwaysAnimate = false)/* overload */; System::WideString __fastcall ExecuteSaveDialog(const System::WideString InitialDir = System::WideString(), const System::WideString InitialFileName = System::WideString(), bool AlwaysAnimate = false, int FilterIndex = 0x0, const System::WideString ExtendedFilters = System::WideString(), const System::WideString Title = System::WideString(), const System::WideString Filter = System::WideString(), Hyieutils::TIOFileType DefaultFilter = 0xffffffff, Hyieutils::TIOFileType LimitToFileType = 0xffffffff)/* overload */; System::WideString __fastcall ExecuteSaveDialog(const System::WideString Title, Hyieutils::TIOFileType DefaultFilter, Hyieutils::TIOFileType LimitToFileType = 0xffffffff, bool AlwaysAnimate = false)/* overload */; void __fastcall CaptureFromScreen(TIECSSource Source = (TIECSSource)(0x0), System::Uitypes::TCursor MouseCursor = (System::Uitypes::TCursor)(0xffffffff)); bool __fastcall LoadFromURL(const System::WideString URL); bool __fastcall Acquire(bool bResetParams = false); bool __fastcall SelectAcquireSource(Iexacquire::TIEAcquireApis Apis = (Iexacquire::TIEAcquireApis() << Iexacquire::TIEAcquireApi::ieaTwain << Iexacquire::TIEAcquireApi::ieaWIA )); bool __fastcall SetAcquireSource(Iexacquire::TIEAcquireApi Api, const System::Variant &Location); __property Iexacquire::TIEAcquireSource SelectedAcquireSource = {read=GetSelectedAcquireSource}; bool __fastcall TwainAcquireOpen(); void __fastcall TwainAcquireClose(); bool __fastcall AcquireOpen(); void __fastcall AcquireClose(); void __fastcall InitializeAcquireSource(bool bIncludeWIA); __property int AsyncRunning = {read=GetAsyncRunning, nodefault}; __property bool AsyncMode = {read=fAsyncMode, write=fAsyncMode, nodefault}; void __fastcall WaitThreads(bool Aborts = false); void __fastcall SuspendThreads _DEPRECATED_ATTRIBUTE0 (); void __fastcall ResumeThreads _DEPRECATED_ATTRIBUTE0 (); __property Iexacquire::TIEAcquireParams* AcquireParams = {read=fAcquireParams}; __property Ietwain::TIETwainParams* TwainParams = {read=fTwainParams}; __property Iexdcim::TIEDcimAcquire* DCIMParams = {read=fDCIMParams}; __property Iewia::TIEWia* WIAParams = {read=GetWIAParams}; __property Ieds::TIEDirectShow* DShowParams = {read=GetDShowParams}; __property Iemmf::TIEMediaFoundationSourceReader* MediaFoundationSourceReader = {read=GetMediaFoundationSourceReader}; void __fastcall PrintImageEx(Iexbitmaps::TIEBitmap* PrintBMP, Vcl::Graphics::TCanvas* PrtCanvas, int dpix, int dpiy, double pagewidth, double pageheight, double MarginLeft, double MarginTop, double MarginRight, double MarginBottom, TIEVerticalPos VerticalPos, TIEHorizontalPos HorizontalPos, TIESize Size, double SpecWidth, double SpecHeight, double GammaCorrection, bool bPrinting = true); void __fastcall PrintImagePos(Vcl::Graphics::TCanvas* PrtCanvas, double x, double y, double Width, double Height, double GammaCorrection = 1.000000E+00, bool PrintAnnotations = false, bool PrintLayers = false); void __fastcall PrintImagePosEx(Iexbitmaps::TIEBitmap* PrintBMP, Vcl::Graphics::TCanvas* PrtCanvas, int dpix, int dpiy, double x, double y, double Width, double Height, double GammaCorrection); void __fastcall PrintImage(Vcl::Graphics::TCanvas* PrtCanvas = (Vcl::Graphics::TCanvas*)(0x0), double MarginLeft = 1.000000E+00, double MarginTop = 1.000000E+00, double MarginRight = 1.000000E+00, double MarginBottom = 1.000000E+00, TIEVerticalPos VerticalPos = (TIEVerticalPos)(0x1), TIEHorizontalPos HorizontalPos = (TIEHorizontalPos)(0x1), TIESize Size = (TIESize)(0x1), double SpecWidth = 0.000000E+00, double SpecHeight = 0.000000E+00, double GammaCorrection = 1.000000E+00, bool PrintAnnotations = false, bool PrintLayers = false); void __fastcall PreviewPrintImage(Vcl::Graphics::TBitmap* DestBitmap, int MaxBitmapWidth, int MaxBitmapHeight, Vcl::Printers::TPrinter* PrinterObj = (Vcl::Printers::TPrinter*)(0x0), double MarginLeft = 1.000000E+00, double MarginTop = 1.000000E+00, double MarginRight = 1.000000E+00, double MarginBottom = 1.000000E+00, TIEVerticalPos VerticalPos = (TIEVerticalPos)(0x1), TIEHorizontalPos HorizontalPos = (TIEHorizontalPos)(0x1), TIESize Size = (TIESize)(0x1), double SpecWidth = 0.000000E+00, double SpecHeight = 0.000000E+00, double GammaCorrection = 1.000000E+00); void __fastcall PreviewPrintImageEx(Iexbitmaps::TIEBitmap* PrintBMP, Vcl::Graphics::TBitmap* DestBitmap, int MaxBitmapWidth, int MaxBitmapHeight, Vcl::Printers::TPrinter* PrinterObj, double MarginLeft, double MarginTop, double MarginRight, double MarginBottom, TIEVerticalPos VerticalPos, TIEHorizontalPos HorizontalPos, TIESize Size, double SpecWidth, double SpecHeight, double GammaCorrection); bool __fastcall DoPrintPreviewDialog(TIEDialogType DialogType = (TIEDialogType)(0x0), const System::WideString TaskName = System::WideString(), bool PrintAnnotations = false, const System::WideString Caption = System::WideString(), bool PrintLayers = false); __property TIOPrintPreviewParams* PrintPreviewParams = {read=fPrintPreviewParams}; __property Hyiedefs::TResampleFilter PrintingFilterOnSubsampling = {read=fPrintingFilterOnSubsampling, write=fPrintingFilterOnSubsampling, nodefault}; __property System::WideString ProxyAddress = {read=GetProxyAddress, write=SetProxyAddress}; __property System::WideString ProxyUser = {read=GetProxyUser, write=SetProxyUser}; __property System::WideString ProxyPassword = {read=GetProxyPassword, write=SetProxyPassword}; __property bool ResetPrinter = {read=fResetPrinter, write=fResetPrinter, nodefault}; __property System::UnicodeString PrintLogFile = {read=GetPrintLogFile, write=SetPrintLogFile}; __published: __property Ieview::TIEView* AttachedImageEn = {read=fImageEnView, write=SetAttachedImageEn}; __property System::Uitypes::TColor Background = {read=GetReBackground, write=SetReBackground, default=0}; __property Hyiedefs::TIEProgressEvent OnProgress = {read=fOnProgress, write=fOnProgress}; __property Hyieutils::TIOPreviewsParams PreviewsParams = {read=GetIOPreviewParams, write=SetIOPreviewParams, default=0}; __property bool StreamHeaders = {read=fStreamHeaders, write=fStreamHeaders, default=0}; __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 TIEIOPreviewEvent OnIOPreview = {read=fOnIOPreview, write=fOnIOPreview}; __property TIEDialogsMeasureUnit DialogsMeasureUnit = {read=fDialogsMeasureUnit, write=fDialogsMeasureUnit, default=0}; __property bool AutoAdjustDPI = {read=fAutoAdjustDPI, write=fAutoAdjustDPI, default=0}; __property bool FilteredAdjustDPI = {read=fFilteredAdjustDPI, write=fFilteredAdjustDPI, default=0}; __property System::Classes::TNotifyEvent OnFinishWork = {read=fOnFinishWork, write=fOnFinishWork}; __property TIEAcquireBitmapEvent OnAcquireBitmap = {read=fOnAcquireBitmap, write=fOnAcquireBitmap}; __property System::Classes::TNotifyEvent OnAcquireClose = {read=fOnAcquireClose, write=fOnAcquireClose}; __property bool SimplifiedParamsDialogs = {read=fSimplifiedParamsDialogs, write=fSimplifiedParamsDialogs, default=1}; __property TIEDoPreviewsEvent OnDoPreviews = {read=fOnDoPreviews, write=fOnDoPreviews}; __property bool NativePixelFormat = {read=GetNativePixelFormat, write=SetNativePixelFormat, default=0}; __property System::UnicodeString ImageEnVersion = {read=GetImageEnVersion, write=SetImageEnVersion, stored=false}; }; typedef System::StaticArray Imageenio__3; //-- var, const, procedure --------------------------------------------------- static _DELPHI_CONST System::Int8 IETW_NONE = System::Int8(0x0); static _DELPHI_CONST System::Int8 IETW_A4LETTER = System::Int8(0x1); static _DELPHI_CONST System::Int8 IETW_B5LETTER = System::Int8(0x2); static _DELPHI_CONST System::Int8 IETW_USLETTER = System::Int8(0x3); static _DELPHI_CONST System::Int8 IETW_USLEGAL = System::Int8(0x4); static _DELPHI_CONST System::Int8 IETW_A5 = System::Int8(0x5); static _DELPHI_CONST System::Int8 IETW_B4 = System::Int8(0x6); static _DELPHI_CONST System::Int8 IETW_B6 = System::Int8(0x7); static _DELPHI_CONST System::Int8 IETW_USLEDGER = System::Int8(0x9); static _DELPHI_CONST System::Int8 IETW_USEXECUTIVE = System::Int8(0xa); static _DELPHI_CONST System::Int8 IETW_A3 = System::Int8(0xb); static _DELPHI_CONST System::Int8 IETW_B3 = System::Int8(0xc); static _DELPHI_CONST System::Int8 IETW_A6 = System::Int8(0xd); static _DELPHI_CONST System::Int8 IETW_C4 = System::Int8(0xe); static _DELPHI_CONST System::Int8 IETW_C5 = System::Int8(0xf); static _DELPHI_CONST System::Int8 IETW_C6 = System::Int8(0x10); static _DELPHI_CONST System::Int8 IETW_4A0 = System::Int8(0x11); static _DELPHI_CONST System::Int8 IETW_2A0 = System::Int8(0x12); static _DELPHI_CONST System::Int8 IETW_A0 = System::Int8(0x13); static _DELPHI_CONST System::Int8 IETW_A1 = System::Int8(0x14); static _DELPHI_CONST System::Int8 IETW_A2 = System::Int8(0x15); static _DELPHI_CONST System::Int8 IETW_A4 = System::Int8(0x1); static _DELPHI_CONST System::Int8 IETW_A7 = System::Int8(0x16); static _DELPHI_CONST System::Int8 IETW_A8 = System::Int8(0x17); static _DELPHI_CONST System::Int8 IETW_A9 = System::Int8(0x18); static _DELPHI_CONST System::Int8 IETW_A10 = System::Int8(0x19); static _DELPHI_CONST System::Int8 IETW_ISOB0 = System::Int8(0x1a); static _DELPHI_CONST System::Int8 IETW_ISOB1 = System::Int8(0x1b); static _DELPHI_CONST System::Int8 IETW_ISOB2 = System::Int8(0x1c); static _DELPHI_CONST System::Int8 IETW_ISOB3 = System::Int8(0xc); static _DELPHI_CONST System::Int8 IETW_ISOB4 = System::Int8(0x6); static _DELPHI_CONST System::Int8 IETW_ISOB5 = System::Int8(0x1d); static _DELPHI_CONST System::Int8 IETW_ISOB6 = System::Int8(0x7); static _DELPHI_CONST System::Int8 IETW_ISOB7 = System::Int8(0x1e); static _DELPHI_CONST System::Int8 IETW_ISOB8 = System::Int8(0x1f); static _DELPHI_CONST System::Int8 IETW_ISOB9 = System::Int8(0x20); static _DELPHI_CONST System::Int8 IETW_ISOB10 = System::Int8(0x21); static _DELPHI_CONST System::Int8 IETW_JISB0 = System::Int8(0x22); static _DELPHI_CONST System::Int8 IETW_JISB1 = System::Int8(0x23); static _DELPHI_CONST System::Int8 IETW_JISB2 = System::Int8(0x24); static _DELPHI_CONST System::Int8 IETW_JISB3 = System::Int8(0x25); static _DELPHI_CONST System::Int8 IETW_JISB4 = System::Int8(0x26); static _DELPHI_CONST System::Int8 IETW_JISB5 = System::Int8(0x2); static _DELPHI_CONST System::Int8 IETW_JISB6 = System::Int8(0x27); static _DELPHI_CONST System::Int8 IETW_JISB7 = System::Int8(0x28); static _DELPHI_CONST System::Int8 IETW_JISB8 = System::Int8(0x29); static _DELPHI_CONST System::Int8 IETW_JISB9 = System::Int8(0x2a); static _DELPHI_CONST System::Int8 IETW_JISB10 = System::Int8(0x2b); static _DELPHI_CONST System::Int8 IETW_C0 = System::Int8(0x2c); static _DELPHI_CONST System::Int8 IETW_C1 = System::Int8(0x2d); static _DELPHI_CONST System::Int8 IETW_C2 = System::Int8(0x2e); static _DELPHI_CONST System::Int8 IETW_C3 = System::Int8(0x2f); static _DELPHI_CONST System::Int8 IETW_C7 = System::Int8(0x30); static _DELPHI_CONST System::Int8 IETW_C8 = System::Int8(0x31); static _DELPHI_CONST System::Int8 IETW_C9 = System::Int8(0x32); static _DELPHI_CONST System::Int8 IETW_C10 = System::Int8(0x33); static _DELPHI_CONST System::Int8 IETW_USSTATEMENT = System::Int8(0x34); static _DELPHI_CONST System::Int8 IETW_BUSINESSCARD = System::Int8(0x35); extern DELPHI_PACKAGE System::UnicodeString iegPrintLogFileName; extern DELPHI_PACKAGE System::TextFile iegPrintLogFile; #define PPP_MARGINTOP L"MARGINTOP" #define PPP_MARGINLEFT L"MARGINLEFT" #define PPP_MARGINRIGHT L"MARGINRIGHT" #define PPP_MARGINBOTTOM L"MARGINBOTTOM" #define PPP_POSITION L"POSITION" #define PPP_SIZE L"SIZE" #define PPP_WIDTH L"WIDTH" #define PPP_HEIGHT L"HEIGHT" #define PPP_GAMMA L"GAMMA" #define PPP_PRINTSELECTED L"PRINTSELECTED" #define PPP_PRINTTHUMBNAILS L"PRINTTHUMBNAILS" #define PPP_THUMBNAILCOLUMNS L"THUMBNAILCOLUMNS" #define PPP_THUMBNAILROWS L"THUMBNAILROWS" #define PPP_THUMBNAILSPACING L"THUMBNAILSPACING" #define PPP_THUMBNAILSTYLE L"THUMBNAILSTYLE" #define PPP_THUMBNAILSHOWTEXT L"THUMBNAILSHOWTEXT" #define PPP_DLGWIDTH L"DLGWIDTH" #define PPP_DLGHEIGHT L"DLGHEIGHT" static _DELPHI_CONST System::Int8 PPP_Property_Count = System::Int8(0x12); extern DELPHI_PACKAGE Imageenio__3 PPP_Property_List; extern DELPHI_PACKAGE Hyieutils::TIOFileType __fastcall IEFilenameToInternalFileType(const System::UnicodeString FileName, bool IncludeMultiOnly = false); extern DELPHI_PACKAGE void __fastcall IEInitialize_imageenio(void); extern DELPHI_PACKAGE void __fastcall IEFinalize_imageenio(void); } /* namespace Imageenio */ #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_IMAGEENIO) using namespace Imageenio; #endif #pragma pack(pop) #pragma option pop #pragma delphiheader end. //-- end unit ---------------------------------------------------------------- #endif // imageenioHPP