PicEdt.h
上传用户:hylc_2004
上传日期:2014-01-23
资源大小:46800k
文件大小:2k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. //---------------------------------------------------------------------------
  2. #ifndef PicEdtH
  3. #define PicEdtH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <Dialogs.hpp>
  10. #include <ExtCtrls.hpp>
  11. #include <ExtDlgs.hpp>
  12. //---------------------------------------------------------------------------
  13. class TfcPicEditor : public TForm
  14. {
  15. __published: // IDE-managed Components
  16.         TButton *OKButton;
  17.         TButton *CancelButton;
  18.         TPanel *Panel;
  19.         TPanel *ImagePanel;
  20.         TImage *Image;
  21.         TButton *LoadButton;
  22.         TButton *SaveButton;
  23.         TButton *ClearButton;
  24.         TOpenPictureDialog *OpenDialog;
  25.         TSavePictureDialog *SaveDialog;
  26.         void __fastcall LoadButtonClick(TObject *Sender);
  27.         void __fastcall SaveButtonClick(TObject *Sender);
  28.         void __fastcall ClearButtonClick(TObject *Sender);
  29.         void __fastcall FormCreate(TObject *Sender);
  30.         void __fastcall FormDestroy(TObject *Sender);
  31. private: // User declarations
  32.         void UpdateImage();
  33. public: // User declarations
  34.         __fastcall TfcPicEditor(TComponent* Owner);
  35.         TPicture* StoredImage;
  36.         static bool ExecutePictureEditor(TGraphic* AGraphic, TPersistent* DestGraphic);
  37. };
  38. //---------------------------------------------------------------------------
  39. extern PACKAGE TfcPicEditor *fcPicEditor;
  40. //---------------------------------------------------------------------------
  41. #endif