// CodeGear C++Builder // Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc. // All rights reserved // (DO NOT EDIT: machine generated header) 'uCEFImage.pas' rev: 37.00 (Windows) #ifndef uCEFImageHPP #define uCEFImageHPP #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 //-- user supplied ----------------------------------------------------------- namespace Ucefimage { //-- forward type declarations ----------------------------------------------- class DELPHICLASS TCefImageRef; //-- type declarations ------------------------------------------------------- #pragma pack(push,4) class PASCALIMPLEMENTATION TCefImageRef : public Ucefbaserefcounted::TCefBaseRefCountedRef { typedef Ucefbaserefcounted::TCefBaseRefCountedRef inherited; protected: bool __fastcall IsEmpty(); bool __fastcall IsSame(const Ucefinterfaces::_di_ICefImage that); bool __fastcall AddBitmap(float scaleFactor, int pixelWidth, int pixelHeight, Uceftypes::TCefColorType colorType, Uceftypes::TCefAlphaType alphaType, const void * pixelData, System::NativeUInt pixelDataSize); bool __fastcall AddPng(float scaleFactor, const void * pngData, System::NativeUInt pngDataSize); bool __fastcall AddJpeg(float scaleFactor, const void * jpegData, System::NativeUInt jpegDataSize); System::NativeUInt __fastcall GetWidth(); System::NativeUInt __fastcall GetHeight(); bool __fastcall HasRepresentation(float scaleFactor); bool __fastcall RemoveRepresentation(float scaleFactor); bool __fastcall GetRepresentationInfo(float scaleFactor, float &actualScaleFactor, int &pixelWidth, int &pixelHeight); Ucefinterfaces::_di_ICefBinaryValue __fastcall GetAsBitmap(float scaleFactor, Uceftypes::TCefColorType colorType, Uceftypes::TCefAlphaType alphaType, int &pixelWidth, int &pixelHeight); Ucefinterfaces::_di_ICefBinaryValue __fastcall GetAsPng(float scaleFactor, bool withTransparency, int &pixelWidth, int &pixelHeight); Ucefinterfaces::_di_ICefBinaryValue __fastcall GetAsJpeg(float scaleFactor, int quality, int &pixelWidth, int &pixelHeight); public: __classmethod Ucefinterfaces::_di_ICefImage __fastcall UnWrap(void * data); __classmethod Ucefinterfaces::_di_ICefImage __fastcall New(); public: /* TCefBaseRefCountedRef.Create */ inline __fastcall virtual TCefImageRef(void * data) : Ucefbaserefcounted::TCefBaseRefCountedRef(data) { } /* TCefBaseRefCountedRef.Destroy */ inline __fastcall virtual ~TCefImageRef() { } private: void *__ICefImage; // Ucefinterfaces::ICefImage public: #if defined(MANAGED_INTERFACE_OPERATORS) // {E2C2F424-26A2-4498-BB45-DA23219831BE} operator Ucefinterfaces::_di_ICefImage() { Ucefinterfaces::_di_ICefImage intf; this->GetInterface(intf); return intf; } #else operator Ucefinterfaces::ICefImage*(void) { return (Ucefinterfaces::ICefImage*)&__ICefImage; } #endif }; #pragma pack(pop) //-- var, const, procedure --------------------------------------------------- } /* namespace Ucefimage */ #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFIMAGE) using namespace Ucefimage; #endif #pragma pack(pop) #pragma option pop #pragma delphiheader end. //-- end unit ---------------------------------------------------------------- #endif // uCEFImageHPP