| 1234567891011121314151617181920212223242526272829303132333435363738394041 | 
							- /*
 
-  * CanvasImage.h, part of VCMI engine
 
-  *
 
-  * Authors: listed in file AUTHORS in main folder
 
-  *
 
-  * License: GNU General Public License v2.0 or later
 
-  * Full text of license available in license.txt file, in main folder
 
-  *
 
-  */
 
- #pragma once
 
- #include "IImage.h"
 
- #include "Canvas.h"
 
- class CanvasImage : public IImage
 
- {
 
- public:
 
- 	CanvasImage(const Point & size, CanvasScalingPolicy scalingPolicy);
 
- 	Canvas getCanvas();
 
- 	void draw(SDL_Surface * where, const Point & pos, const Rect * src, int scalingFactor) const override;
 
- 	void scaleTo(const Point & size, EScalingAlgorithm algorithm) override;
 
- 	void exportBitmap(const boost::filesystem::path & path) const override;
 
- 	Rect contentRect() const override;
 
- 	Point dimensions() const override;
 
- 	//no-op methods
 
- 	bool isTransparent(const Point & coords) const override{ return false;};
 
- 	void setAlpha(uint8_t value) override{};
 
- 	void playerColored(const PlayerColor & player) override{};
 
- 	void setOverlayColor(const ColorRGBA & color) override{};
 
- 	void shiftPalette(uint32_t firstColorID, uint32_t colorsToMove, uint32_t distanceToMove) override{};
 
- 	void adjustPalette(const ColorFilter & shifter, uint32_t colorsToSkipMask) override{};
 
- private:
 
- 	SDL_Surface * surface;
 
- 	CanvasScalingPolicy scalingPolicy;
 
- };
 
 
  |