34 virtual const void*
GetLinePtr(
int positionY)
const override;
35 virtual void*
GetLinePtr(
int positionY)
override;
93 int m_linesDifference;
104 return m_linesDifference;
116 Q_ASSERT(positionY >= 0);
117 Q_ASSERT(positionY < m_size.
GetY());
119 return m_buffer.
GetPtr() + quint64(m_linesDifference) * quint64(positionY);
125 Q_ASSERT(positionY >= 0);
126 Q_ASSERT(positionY < m_size.
GetY());
128 return m_buffer.
GetPtr() + quint64(m_linesDifference) * quint64(positionY);
Base implementation of some iimg::IBitmap methods.
virtual int GetPixelBitsCount() const override
Get total number of bits per single pixel.
Standard device- and platform-independent bitmap definition.
virtual bool ResetData(CompatibilityMode mode=CM_WITHOUT_REFS) override
Reset data to its default state.
virtual const void * GetLinePtr(int positionY) const override
Get pointer to buffer for single line.
bool operator==(const CGeneralBitmap &bitmap) const
virtual PixelFormat GetPixelFormat() const override
Get the bitmap's pixel format.
virtual void ClearImage() override
Cleat this image.
virtual int GetLinesDifference() const override
Get address difference between next and previous line.
bool operator!=(const CGeneralBitmap &bitmap) const
virtual bool CreateBitmap(PixelFormat pixelFormat, const istd::CIndex2d &size, void *dataPtr, bool releaseFlag, int linesDifference=0) override
Create bitmap with specified size and format using external image data buffer.
virtual bool CreateBitmap(const istd::CIndex2d &size, int pixelBitsCount, int componentsCount, PixelFormat pixelFormat)
Create bitmap with specified size, number of bits per pixel and components number per pixel.
virtual istd::TUniqueInterfacePtr< istd::IChangeable > CloneMe(CompatibilityMode mode=CM_WITHOUT_REFS) const override
Make a copy of this object.
virtual istd::CIndex2d GetImageSize() const override
Get size of this raster image.
virtual int GetPixelsDifference() const override
Get address difference between next and previous pixel.
CGeneralBitmap(const CGeneralBitmap &bitmap)
virtual void ResetImage() override
Reset this image.
virtual int GetSupportedOperations() const override
Get set of flags for supported operations.
virtual bool CopyFrom(const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
Copy this object from another one.
CGeneralBitmap & operator=(const CGeneralBitmap &bitmap)
virtual bool IsFormatSupported(PixelFormat pixelFormat) const override
Get true if the pixel format is supported by the bitmap implementation.
virtual bool CreateBitmap(const istd::CIndex2d &size, void *dataPtr, bool releaseFlag, int linesDifference, int pixelBitsCount, int componentsCount, PixelFormat pixelFormat)
Create bitmap using external image buffer.
virtual bool CreateBitmap(PixelFormat pixelFormat, const istd::CIndex2d &size, int pixelBitsCount=0, int componentsCount=0) override
Create bitmap with specified size and format.
PixelFormat
Bitmap pixel format description.
Index implementation for addressing elements in 2D-space.
Common interface for data model objects, which can be changed.
CompatibilityMode
Control how relationship betweeen objects are interpreted.
@ CM_WITHOUT_REFS
External references are simple ignored.
Pointer wrapper providing activatable deleting pointed object during destruction.
Type * GetPtr() const
Return access to internal stored pointer.
Unique ownership smart pointer for interface types.
Contains the system indenendent definitions of image and related themes.