| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef AlphaFeld_H
- #define AlphaFeld_H
- #include "Drawing.h"
- namespace Framework
- {
- class Bild; //! Image.h
- class AlphaFeld; //! from this file
- //! A 2D GUI Framework drawing that represents a color gradient
- //! towards a rectangle
- class AlphaFeld : public Zeichnung
- {
- private:
- int strength;
- int farbe;
- public:
- //! Constructor
- DLLEXPORT AlphaFeld();
- //! Destructor
- DLLEXPORT virtual ~AlphaFeld();
- //! Sets the strength of the transition. This is the value by which the
- //! alpha value of the color decreases for each pixel inward
- //! \param st The strength
- DLLEXPORT void setStrength(int st);
- //! Sets the color of the alpha field
- //! \param f The color in A8R8G8B8 format
- DLLEXPORT void setFarbe(int f);
- //! Draws the drawing into a specific image
- //! \param zRObj The image to draw into
- DLLEXPORT void render(Bild& zRObj) override;
- //! Returns the strength of the alpha field
- DLLEXPORT int getStrength() const;
- //! returns the color of the alpha field in A8R8G8B8 format
- DLLEXPORT int getFarbe() const;
- //! Copies the alpha field so that it can be used
- //! without affecting the original
- DLLEXPORT Zeichnung* dublizieren() const override;
- };
- } // namespace Framework
- #endif
|