CRotateImage.h 969 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #ifndef CROTATEIMAGE_H
  3. #define CROTATEIMAGE_H
  4. #include "CImageBasis.h"
  5. class CRotateImage: public CImageBasis
  6. {
  7. public:
  8. CImageBasis *ImageTMP, *ImageOrg;
  9. bool doflip;
  10. CRotateImage(std::string _image, bool _flip = false) : CImageBasis(_image) {ImageTMP = NULL; ImageOrg = NULL; doflip = _flip;};
  11. CRotateImage(uint8_t* _rgb_image, int _channels, int _width, int _height, int _bpp, bool _flip = false) : CImageBasis(_rgb_image, _channels, _width, _height, _bpp) {ImageTMP = NULL; ImageOrg = NULL; doflip = _flip;};
  12. CRotateImage(CImageBasis *_org, CImageBasis *_temp, bool _flip = false);
  13. void Rotate(float _angle);
  14. void RotateAntiAliasing(float _angle);
  15. void Rotate(float _angle, int _centerx, int _centery);
  16. void RotateAntiAliasing(float _angle, int _centerx, int _centery);
  17. void Translate(int _dx, int _dy);
  18. void Mirror();
  19. };
  20. #endif //CROTATEIMAGE_H