home *** CD-ROM | disk | FTP | other *** search
/ Compressed Image File Formats / CompressedImageFileFormatsJohnMiano.iso / pc / Library / BCBViewer / JpegConfig.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-26  |  3.9 KB  |  149 lines

  1. //
  2. // Copyright (c) 1998 Colosseum Builders, Inc.
  3. // All rights reserved.
  4. //
  5. // Colosseum Builders, Inc. makes no warranty, expressed or implied
  6. // with regards to this software. It is provided as is.
  7. //
  8. // Permission to use, redistribute, and copy this file is granted
  9. // without a fee so long as as the following conditions are adhered to:
  10. //
  11. // o The user assumes all risk for using this software. The authors of this
  12. //   software shall be liable for no damages of any kind.
  13. //
  14. // o If the source code is distributed then this copyright notice must
  15. //   remain unaltered and any modification must be noted.
  16. //
  17. // o If this code is shipped in binary format the accompanying documentation
  18. //   should state that "this software is based, in part, on the work of
  19. //   Colosseum Builders, Inc."
  20. //
  21.  
  22. //
  23. //  Title:  Sample Image Viewer/Format Conversion Application
  24. //
  25. //  Author:  John M. Miano miano@colosseumbuilders.com
  26. //
  27. //----------------------------------------------------------------------------
  28. #ifndef JpegConfigH
  29. #define JpegConfigH
  30. //----------------------------------------------------------------------------
  31. #include <SysUtils.hpp>
  32. #include <Windows.hpp>
  33. #include <Messages.hpp>
  34. #include <Classes.hpp>
  35. #include <Graphics.hpp>
  36. #include <Controls.hpp>
  37. #include <StdCtrls.hpp>
  38. #include <ExtCtrls.hpp>
  39. #include <Forms.hpp>
  40. #include <ComCtrls.hpp>
  41.  
  42. #include "jpegenco.h"
  43. //----------------------------------------------------------------------------
  44. class TJPEGOptions : public TForm
  45. {
  46. __published:
  47.   TPageControl *PageControl;
  48.   TPanel *Panel1;
  49.   TButton *OkButton;
  50.   TButton *CancelButton;
  51.   TTabSheet *SequentialSheet;
  52.   TTabSheet *ProgressiveSheet;
  53.   TTabSheet *SamplingSheet;
  54.   TGroupBox *GroupBox1;
  55.   TRadioButton *YV1;
  56.   TRadioButton *YV2;
  57.   TRadioButton *YV3;
  58.   TRadioButton *YV4;
  59.   TGroupBox *GroupBox2;
  60.   TRadioButton *YH1;
  61.   TRadioButton *YH2;
  62.   TRadioButton *YH3;
  63.   TRadioButton *YH4;
  64.   TGroupBox *GroupBox3;
  65.   TRadioButton *CbH1;
  66.   TRadioButton *CbH2;
  67.   TRadioButton *CbH3;
  68.   TRadioButton *CbH4;
  69.   TGroupBox *GroupBox4;
  70.   TRadioButton *CbV1;
  71.   TRadioButton *CbV2;
  72.   TRadioButton *CbV3;
  73.   TRadioButton *CbV4;
  74.   TLabel *Label1;
  75.   TLabel *Label2;
  76.   TLabel *Label3;
  77.   TGroupBox *GroupBox5;
  78.   TRadioButton *CrH1;
  79.   TRadioButton *CrH2;
  80.   TRadioButton *CrH3;
  81.   TRadioButton *CrH4;
  82.   TGroupBox *GroupBox6;
  83.   TRadioButton *CrV1;
  84.   TRadioButton *CrV2;
  85.   TRadioButton *CrV3;
  86.   TRadioButton *CrV4;
  87.   TLabel *Label4;
  88.   TLabel *Label5;
  89.   TEdit *SS2;
  90.   TEdit *SS3;
  91.   TEdit *SS4;
  92.   TEdit *SS5;
  93.   TEdit *SS6;
  94.   TEdit *SA6;
  95.   TEdit *SA1;
  96.   TEdit *SA2;
  97.   TEdit *SA3;
  98.   TEdit *SA4;
  99.   TEdit *SA5;
  100.   TEdit *SA7;
  101.   TLabel *Label6;
  102.   TLabel *Label7;
  103.   TLabel *Label8;
  104.   TLabel *Label9;
  105.   TLabel *Label10;
  106.   TLabel *Label11;
  107.   TLabel *Label12;
  108.   TLabel *Label13;
  109.   TLabel *Label14;
  110.   TPanel *Panel2;
  111.   TRadioButton *SequentialButton;
  112.   TRadioButton *ProgresiveButton ;
  113.   TPanel *Panel4;
  114.   TPanel *Panel5;
  115.   TPanel *Panel6;
  116.   TLabel *Label15;
  117.   TLabel *Label16;
  118.   TLabel *Label17;
  119.   TLabel *Label18;
  120.   TLabel *Label19;
  121.   TRadioButton *Scan1Y;
  122.   TRadioButton *Scan2Y;
  123.   TRadioButton *Scan3Y;
  124.   TRadioButton *Scan1Cb;
  125.   TRadioButton *Scan2Cb;
  126.   TRadioButton *Scan3Cb;
  127.   TRadioButton *Scan1Cr;
  128.   TRadioButton *Scan2Cr;
  129.   TRadioButton *Scan3Cr;
  130.   TLabel *Label20;
  131.   TEdit *QualityValue;
  132.   TLabel *Label21;
  133.   TCheckBox *Grayscale;
  134.   void __fastcall SequentialButtonClick(TObject *Sender);
  135.   void __fastcall ProgresiveButtonClick(TObject *Sender);
  136.  
  137.   void __fastcall OkButtonClick(TObject *Sender);
  138. private:
  139.   JpegEncoder *encoder ;
  140. public:
  141.   int ShowModal (JpegEncoder &je) ;
  142.   void WriteSettings (JpegEncoder &) ;
  143.     virtual __fastcall TJPEGOptions(TComponent *Owner);
  144. };
  145. //----------------------------------------------------------------------------
  146. extern PACKAGE TJPEGOptions *JPEGOptions;
  147. //----------------------------------------------------------------------------
  148. #endif
  149.