?login_element?

Subversion Repositories NedoOS

Rev

Rev 40 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. //---------------------------------------------------------------------------
  2.  
  3. #ifndef Unit1H
  4. #define Unit1H
  5. //---------------------------------------------------------------------------
  6. #include <Classes.hpp>
  7. #include <Controls.hpp>
  8. #include <StdCtrls.hpp>
  9. #include <Forms.hpp>
  10. #include <ExtCtrls.hpp>
  11. //---------------------------------------------------------------------------
  12. class TForm1 : public TForm
  13. {
  14. __published:    // IDE-managed Components
  15.         TImage *Image1;
  16.         TMemo *Memo1;
  17.         TLabel *lbR;
  18.         TLabel *lbG;
  19.         TLabel *lbB;
  20.         TImage *curColor;
  21.         TImage *changV;
  22.         TImage *curColorChunky;
  23.         TImage *Image2;
  24.         TImage *ImageOut;
  25.         void __fastcall FormCreate(TObject *Sender);
  26.         void __fastcall Image1MouseMove(TObject *Sender, TShiftState Shift,
  27.           int X, int Y);
  28.         void __fastcall Image1Click(TObject *Sender);
  29.         void __fastcall changVMouseMove(TObject *Sender, TShiftState Shift,
  30.           int X, int Y);
  31.         void __fastcall changVClick(TObject *Sender);
  32.         void __fastcall curColorClick(TObject *Sender);
  33. private:        // User declarations
  34. public:         // User declarations
  35.         float curmouseH;
  36.         float curmouseS;
  37.         float curmouseV;
  38.  
  39.         float curH;
  40.         float curS;
  41.         float curV;
  42.  
  43.         __fastcall TForm1(TComponent* Owner);
  44.         void tracepixel(int i,int j);
  45.         void prhex(AnsiString name, int a);
  46.         int calcHSVtoRGB(float h,float s,float v);
  47.         void showcolor();
  48.         void showHSpalette();
  49.         void showVpalette();
  50.         void setColorChunkyR(int x, int y, int n);
  51.         void setColorChunkyG(int x, int y, int n);
  52.         void setColorChunkyB(int x, int y, int n);
  53.         void setHSpaletteR(int x, int y, int n);
  54.         void setHSpaletteG(int x, int y, int n);
  55.         void setHSpaletteB(int x, int y, int n);
  56. };
  57. //---------------------------------------------------------------------------
  58. extern PACKAGE TForm1 *Form1;
  59. //---------------------------------------------------------------------------
  60. #endif
  61.