First commit 19/07/1998

This commit is contained in:
2021-09-12 21:54:38 +02:00
commit b0116562cd
106 changed files with 16717 additions and 0 deletions

BIN
imageLib/ColImage.bpi Normal file

Binary file not shown.

BIN
imageLib/ColImage.bpl Normal file

Binary file not shown.

BIN
imageLib/ColImage.lib Normal file

Binary file not shown.

34
imageLib/README.TXT Normal file
View File

@ -0,0 +1,34 @@
What's in here
---------------
The package ColImage contains encoders and decoders for the JPEG, GIF,
and PNG formats that are compatible with VCL/C++Builder.
How To Use It
--------------
1. Load the Project Group Image
2. Build The LibImage Project
3. Build the ColImage Project
4. Copy ColImage.BPI, ColImage.BPL, ColImage.LIB to the appropriate
directories. The standard location are the C++Builder /LIB directory
for the .BPI and .LIB files and the /BIN directory for the .BPL file.
5. Select COMPONENT|INSTALL|ADD and add ColImage.BPL
At this point you should be able to use JPEG, GIF, and PNG files in
design mode. Try creating a project and add an image control to it.
If you double click on the Picture property in the object inspector
you should be able to load these new image formats.
To use these format in a project add the statement
LoadPackage ("COLIMAGE.BPL") ;
to your project's source module. Otherwise you may get errors messages
about undefined file formats.
*****A WORD OF CAUTION *****
----------------------------
When you build ColImage.BPI you cannot use the dynamic RTL. You must ensure
that the Project|Options|Linker|Use debug libraries is not checked.

46
imageLib/gifimage.h Normal file
View File

@ -0,0 +1,46 @@
//---------------------------------------------------------------------------
#ifndef gifimageH
#define gifimageH
//---------------------------------------------------------------------------
#include <SysUtils.hpp>
#include <Controls.hpp>
#include <Classes.hpp>
#include <Forms.hpp>
#include "gifdecod.h"
#include "gifencod.h"
//---------------------------------------------------------------------------
class PACKAGE TGifImage : public TGraphic
{
private:
BitmapImage image ;
GifDecoder decoder ;
GifEncoder encoder ;
Graphics::TBitmap *bitmap ;
protected:
public:
virtual __fastcall TGifImage();
virtual __fastcall ~TGifImage();
virtual void __fastcall Draw (TCanvas *canvas, const TRect &rect) ;
virtual bool __fastcall GetEmpty () ;
virtual int __fastcall GetHeight () ;
virtual int __fastcall GetWidth () ;
virtual void __fastcall SetHeight (int) ;
virtual void __fastcall SetWidth (int) ;
virtual void __fastcall LoadFromStream (TStream *) ;
virtual void __fastcall SaveToStream (TStream *) ;
virtual void __fastcall LoadFromClipboardFormat (Word, int, HPALETTE) ;
virtual void __fastcall SaveToClipboardFormat (Word &, int &, HPALETTE &) ;
virtual void __fastcall SetPalette (HPALETTE) ;
virtual void __fastcall Assign (TPersistent *source) ;
virtual void __fastcall AssignTo (TPersistent *dest) ;
virtual HPALETTE __fastcall GetPalette () ;
__published:
};
//---------------------------------------------------------------------------
#endif

BIN
imageLib/imagelib.zip Normal file

Binary file not shown.

48
imageLib/jpgimage.h Normal file
View File

@ -0,0 +1,48 @@
//---------------------------------------------------------------------------
#ifndef jpgimageH
#define jpgimageH
//---------------------------------------------------------------------------
#include <SysUtils.hpp>
#include <Controls.hpp>
#include <Classes.hpp>
#include <Forms.hpp>
#include "jpegenco.h"
#include "jpegdeco.h"
//---------------------------------------------------------------------------
class PACKAGE TJpegImage : public TGraphic
{
private:
BitmapImage image ;
JpegEncoder encoder ;
JpegDecoder decoder ;
Graphics::TBitmap *bitmap ;
protected:
virtual JpegEncoder * __fastcall GetEncoder () ;
public:
virtual __fastcall TJpegImage();
virtual __fastcall ~TJpegImage();
virtual void __fastcall Draw (TCanvas *canvas, const TRect &rect) ;
virtual bool __fastcall GetEmpty () ;
virtual int __fastcall GetHeight () ;
virtual int __fastcall GetWidth () ;
virtual void __fastcall SetHeight (int) ;
virtual void __fastcall SetWidth (int) ;
virtual void __fastcall LoadFromStream (TStream *) ;
virtual void __fastcall SaveToStream (TStream *) ;
virtual void __fastcall LoadFromClipboardFormat (Word, int, HPALETTE) ;
virtual void __fastcall SaveToClipboardFormat (Word &, int &, HPALETTE &) ;
virtual void __fastcall SetPalette (HPALETTE) ;
virtual void __fastcall Assign (TPersistent *source) ;
virtual void __fastcall AssignTo (TPersistent *dest) ;
__property JpegEncoder *Encoder = { read = GetEncoder } ;
__published:
};
//---------------------------------------------------------------------------
#endif

BIN
imageLib/libimage.lib Normal file

Binary file not shown.

48
imageLib/pngimage.h Normal file
View File

@ -0,0 +1,48 @@
//---------------------------------------------------------------------------
#ifndef pngimageH
#define pngimageH
//---------------------------------------------------------------------------
#include <SysUtils.hpp>
#include <Controls.hpp>
#include <Classes.hpp>
#include <Forms.hpp>
#include "pngencod.h"
#include "pngdecod.h"
//---------------------------------------------------------------------------
class PACKAGE TPngImage : public TGraphic
{
private:
BitmapImage image ;
PngEncoder encoder ;
PngDecoder decoder ;
Graphics::TBitmap *bitmap ;
protected:
virtual PngEncoder * __fastcall GetEncoder () ;
public:
virtual __fastcall TPngImage();
virtual __fastcall ~TPngImage();
virtual void __fastcall Draw (TCanvas *canvas, const TRect &rect) ;
virtual bool __fastcall GetEmpty () ;
virtual int __fastcall GetHeight () ;
virtual int __fastcall GetWidth () ;
virtual void __fastcall SetHeight (int) ;
virtual void __fastcall SetWidth (int) ;
virtual void __fastcall LoadFromStream (TStream *) ;
virtual void __fastcall SaveToStream (TStream *) ;
virtual void __fastcall LoadFromClipboardFormat (Word, int, HPALETTE) ;
virtual void __fastcall SaveToClipboardFormat (Word &, int &, HPALETTE &) ;
virtual void __fastcall SetPalette (HPALETTE) ;
virtual void __fastcall Assign (TPersistent *source) ;
virtual void __fastcall AssignTo (TPersistent *dest) ;
__property PngEncoder *Encoder = { read = GetEncoder } ;
__published:
};
//---------------------------------------------------------------------------
#endif