|
TIFFCLASS.H Code |
//--------------------------------------------------------------------------- #ifndef tiffclassH #define tiffclassH #include "graphics.hpp" #include "extctrls.hpp" #include "tiff.h" #include "tiffconf.h" #include "tiffiop.h" #include "tiffvers.h" #include "strstream.h" extern const unsigned char bits[]; enum tifCompression
{ tifComp_Uncompressed = 1,
tifComp_CCITT1D = 2,
tifComp_GROUP3FAX = 3,
tifComp_GROUP4FAX = 4, tifComp_LZW = 5, tifComp_JPEG = 6, tifComp_PackBits = 32773 }; enum tifTypes
{ tifType_BYTE = 1, tifType_ASCII, tifType_SHORT, tifType_LONG, tifType_RATIONAL, tifType_SBYTE, tifType_UNDEFINED, tifType_SSHORT, tifType_SLONG, tifType_SRATIONAL, tifType_FLOAT, tifType_DOUBLE }; class PACKAGE TIFFFile { protected: TIFF *Image; AnsiString FileName; uint32 StripSize,NumberofStrips; uint32 Width,Length,RowsPerStrip,LineSize; uint16
BitsPerPixel,SamplesPerPixel,Photo,Compression,PlanarConfig,FillOrder,ResolutionUnit; uint32 XResolution[2],YResolution[2]; bool ImageLoaded; TIFFErrorHandler WarningHandler; public: void __fastcall Load(AnsiString fname,Graphics::TBitmap *bitmap); void __fastcall Load(TStream *strm,Graphics::TBitmap *bitmap); void __fastcall Load(Graphics::TBitmap
*bitmap); void __fastcall Save(AnsiString fname,Graphics::TBitmap *bitmap); void __fastcall SaveStream(TStream *strm,Graphics::TBitmap
*bitmap); void __fastcall Save(Graphics::TBitmap
*bitmap); TIFF * __fastcall TIFFOpen(AnsiString fname,Word mode); TIFF * __fastcall TIFFOpenStream(TStream *strm,Word mode); void __fastcall ClearWarningHandler(void); void __fastcall RestoreWarningHandler(void); __fastcall TIFFFile(void); }; //--------------------------------------------------------------------------- #endif |
Links to project files: Project file and modified tiffio.h/tiffiop.h files for building libtiff with BCB6 Project group, project files and all support for the eneTIFFBitmap object |
|