ACF $AcfVersion:0$
IRasterImage.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
6#include <istd/CIndex2d.h>
7#include <i2d/IObject2d.h>
8#include <icmm/IColorModel.h>
9#include <icmm/CVarColor.h>
10
11
12namespace iimg
13{
14
15
23class IRasterImage: virtual public i2d::IObject2d
24{
25public:
29 virtual bool IsEmpty() const = 0;
30
35 virtual void ResetImage() = 0;
36
41 virtual void ClearImage() = 0;
42
46 virtual istd::CIndex2d GetImageSize() const = 0;
47
51 virtual int GetComponentsCount() const = 0;
52
57 virtual icmm::CVarColor GetColorAt(const istd::CIndex2d& position) const = 0;
58
65 virtual bool SetColorAt(const istd::CIndex2d& position, const icmm::CVarColor& color) = 0;
66
70 virtual const icmm::IColorModel* GetColorModel() const = 0;
71};
72
73
74} // namespace iimg
75
76
Common interface for describing the 2D-objects.
Definition IObject2d.h:26
Generic color implementation with variable number of color components.
Definition CVarColor.h:176
Common interface for color model definitions in the ACF color management system.
General definition of image contains pixels in regular grid.
virtual int GetComponentsCount() const =0
Get number of color components.
virtual const icmm::IColorModel * GetColorModel() const =0
Get the color model related to the image.
virtual icmm::CVarColor GetColorAt(const istd::CIndex2d &position) const =0
Get color at specified pixel.
virtual void ClearImage()=0
Cleat this image.
virtual istd::CIndex2d GetImageSize() const =0
Get size of this raster image.
virtual bool IsEmpty() const =0
Return true if this image is empty.
virtual bool SetColorAt(const istd::CIndex2d &position, const icmm::CVarColor &color)=0
Set color at specified pixel.
virtual void ResetImage()=0
Reset this image.
Index implementation for addressing elements in 2D-space.
Definition CIndex2d.h:21
Contains the system indenendent definitions of image and related themes.
Definition CBitmap.h:17