Guest User

Untitled

a guest
Jul 18th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. //---------------------------------------------------------------------------
  2.  
  3. #ifndef ImageH
  4. #define ImageH
  5.  
  6. #include <vcl.h>
  7. #include <math.h>
  8.  
  9. class Image {
  10. Graphics::TBitmap *Bitmapa;
  11. TColor AverageSquareColor(int x, int y, int ray);
  12. void DrawSquare(int x,int y,int ray, TColor col);
  13. public:
  14. Image();
  15. int width;
  16. int height;
  17. bool isImage();
  18. void OpenImage(TImage *im);
  19. void PutPixel(int x,int y,TColor color);
  20. TColor GetPixel(int x,int y);
  21. void Invert();
  22. void DrawAxis(); //to nie skuty
  23. void ReversImageHorizontally();
  24. void ReversImageVertically();
  25. void Pixelization(int pro);
  26. void Colorized(int skladowa); //to nie skuty
  27. void Luminance();
  28. void Invert(bool r, bool g, bool b);
  29. void Grayscale(); //to nie skuty
  30. };
  31.  
  32. //---------------------------------------------------------------------------
  33. #endif
Add Comment
Please, Sign In to add comment