6#include <QtCore/QMutex>
52 virtual const void*
GetLinePtr(
int positionY)
const override;
82 static QVector<QRgb> s_colorTableGray;
83 static QMutex s_colorTableLock;
Base implementation of some iimg::IBitmap methods.
Bitmap implementation based on Qt QImage.
virtual bool CreateBitmap(PixelFormat pixelFormat, const istd::CIndex2d &size, int pixelBitsCount=0, int componentsCount=0) override
Create bitmap with specified size and format.
virtual void ClearImage() override
Cleat this image.
CBitmap(const QImage &image)
static QByteArray GetTypeName()
virtual PixelFormat GetPixelFormat() const override
Get the bitmap's pixel format.
virtual const void * GetLinePtr(int positionY) const override
Get pointer to buffer for single line.
virtual QByteArray GetFactoryId() const override
virtual bool CopyImageFrom(const QImage &image) override
Copies the image data from a QImage object.
virtual bool CopyFrom(const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
Copy this object from another one.
virtual bool IsFormatSupported(PixelFormat pixelFormat) const override
Get true if the pixel format is supported by the bitmap implementation.
virtual void * GetLinePtr(int positionY) override
Get pointer to buffer for single line.
virtual void ResetImage() override
Reset this image.
void InitializeColorModel()
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 int GetSupportedOperations() const override
Get set of flags for supported operations.
virtual istd::TUniqueInterfacePtr< istd::IChangeable > CloneMe(CompatibilityMode mode=CM_WITHOUT_REFS) const override
Make a copy of this object.
CBitmap(const CBitmap &bitmap)
virtual int GetLinesDifference() const override
Get address difference between next and previous line.
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.
bool SetQImage(const QImage &image)
QImage::Format CalcQtFormat(PixelFormat pixelFormat) const
virtual const QImage & GetQImage() const override
Gets a QImage object.
virtual bool ResetData(CompatibilityMode mode=CM_WITHOUT_REFS) override
Reset data to its default state.
PixelFormat CalcFromQtFormat(QImage::Format imageFormat) const
PixelFormat
Bitmap pixel format description.
Interface for QImage object provider.
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 automatic deleting pointed object during destruction.
Pointer wrapper providing activatable deleting pointed object during destruction.
Unique ownership smart pointer for interface types.
Contains the system indenendent definitions of image and related themes.