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

  1. //----------------------------------------------------------------------------
  2. #ifndef __GAMMA_H
  3. #define __GAMMA_H
  4. //
  5. // Copyright (c) 1998 Colosseum Builders, Inc.
  6. // All rights reserved.
  7. //
  8. // Colosseum Builders, Inc. makes no warranty, expressed or implied
  9. // with regards to this software. It is provided as is.
  10. //
  11. // Permission to use, redistribute, and copy this file is granted
  12. // without a fee so long as as the following conditions are adhered to:
  13. //
  14. // o The user assumes all risk for using this software. The authors of this
  15. //   software shall be liable for no damages of any kind.
  16. //
  17. // o If the source code is distributed then this copyright notice must
  18. //   remain unaltered and any modification must be noted.
  19. //
  20. // o If this code is shipped in binary format the accompanying documentation
  21. //   should state that "this software is based, in part, on the work of
  22. //   Colosseum Builders, Inc."
  23. //
  24.  
  25. //
  26. //  Title:  Sample Image Viewer/Format Conversion Application
  27. //
  28. //  Author:  John M. Miano miano@colosseumbuilders.com
  29. //
  30. //----------------------------------------------------------------------------
  31. #include <ExtCtrls.hpp>
  32. #include <Buttons.hpp>
  33. #include <StdCtrls.hpp>
  34. #include <Controls.hpp>
  35. #include <Forms.hpp>
  36. #include <Graphics.hpp>
  37. #include <Classes.hpp>
  38. #include <SysUtils.hpp>
  39. #include <Windows.hpp>
  40. #include <System.hpp>
  41. #include <ComCtrls.hpp>
  42. //----------------------------------------------------------------------------
  43. class TGammaDlg : public TForm
  44. {
  45. __published:
  46.     TButton *OKBtn;
  47.     TButton *CancelBtn;
  48.     TBevel *Bevel1;
  49.   TTrackBar *TrackBar;
  50.   TLabel *Label1;
  51.   TLabel *GammaLabel;
  52.   void __fastcall TrackBarChange(TObject *Sender);
  53.   
  54.   
  55. private:
  56.   void __fastcall SetGammaValue (double) ;
  57.   double __fastcall GetGammaValue () ;
  58. public:
  59.     virtual __fastcall TGammaDlg(TComponent* AOwner);
  60.   __property double GammaValue = { read=GetGammaValue, write=SetGammaValue } ;
  61. };
  62. //----------------------------------------------------------------------------
  63. extern PACKAGE TGammaDlg *GammaDlg;
  64. //----------------------------------------------------------------------------
  65. #endif
  66.