CImage



Implements Image control.

You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.

class CImage :public virtual IImage, public CControl
{
public:
    RectF getClientRect() override;
    RectF getRenderRect() override;
    Image *getImage() override; // If you modify image data, call Update() after it 

    bool setDPI(const Point &value) override;

    // IControl methods 
    void Refresh(const bool refresh_children) override;

    void Assign(const Image &data) override;
    bool Assign(ITexture *texture) override;
    void Update() override;

    CImage();
    CImage(IForm *parent);
    CImage(IControl *parent);

    // Return layout properties 
    RectF getBorderWidth() const;
    RectF getBorderRadius() const;
    BorderColor getBorderColor() const;
    Color getLeftBorderColor() const;
    Color getTopBorderColor() const;
    Color getRightBorderColor() const;
    Color getBottomBorderColor() const;
    Color getBackgroundColor() const;
    Gradient *getBackgroundGradient();
    Color getShadowColor() const;
    PointF getShadowShift() const;
    int getShadowRadius() const;
    Mat4f &getImageTransform(); // Return image transformation matrix 
    float getOpacity() const; // Return image opacity 

    // Set layout properties 
    bool setBorderWidth(const RectF &value);
    bool setBorderRadius(const RectF &value);
    bool setBorderColor(const BorderColor &value);
    bool setLeftBorderColor(const Color &value);
    bool setTopBorderColor(const Color &value);
    bool setRightBorderColor(const Color &value);
    bool setBottomBorderColor(const Color &value);
    bool setBackgroundColor(const Color &value);
    bool setShadowColor(const Color &value);
    bool setShadowShift(const PointF &value);
    bool setShadowRadius(const int value);
    bool setImageTransform(const Mat4f &value); // Set image transformation matrix 
    bool setOpacity(const float value); // Set image opacity 
};
Namespace: nitisa::standard
Include: Standard/Controls/Image/Image.h