Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //---------------------------------------------------------------------------
- #ifndef ImageH
- #define ImageH
- #include <vcl.h>
- #include <math.h>
- class Image {
- Graphics::TBitmap *Bitmapa;
- TColor AverageSquareColor(int x, int y, int ray);
- void DrawSquare(int x,int y,int ray, TColor col);
- public:
- Image();
- int width;
- int height;
- bool isImage();
- void OpenImage(TImage *im);
- void PutPixel(int x,int y,TColor color);
- TColor GetPixel(int x,int y);
- void Invert();
- void DrawAxis(); //to nie skuty
- void ReversImageHorizontally();
- void ReversImageVertically();
- void Pixelization(int pro);
- void Colorized(int skladowa); //to nie skuty
- void Luminance();
- void Invert(bool r, bool g, bool b);
- void Grayscale(); //to nie skuty
- };
- //---------------------------------------------------------------------------
- #endif
Add Comment
Please, Sign In to add comment