1 #ifndef iimg_CBitmap_included
2 #define iimg_CBitmap_included
6 #include <QtCore/QMutex>
49 virtual const void*
GetLinePtr(
int positionY)
const;
76 static QVector<QRgb> s_colorTableGray;
77 static QMutex s_colorTableLock;
virtual PixelFormat GetPixelFormat() const
Get the bitmap's pixel format.
virtual bool IsFormatSupported(PixelFormat pixelFormat) const
Get true if the pixel format is supported by the bitmap implementation.
External references are simple ignored.
virtual const void * GetLinePtr(int positionY) const
Get pointer to buffer for single line.
CompatibilityMode
Control how relationship betweeen objects are interpreted.
virtual void ResetImage()
Reset this image.
Interface for QImage object provider.
virtual QByteArray GetFactoryId() const
virtual int GetPixelsDifference() const
Get address difference between next and previous pixel.
Index implementation for addressing elements in 2D-space.
QImage::Format CalcQtFormat(PixelFormat pixelFormat) const
virtual const QImage & GetQImage() const
Gets a QImage object.
PixelFormat
Bitmap pixel format description.
virtual int GetSupportedOperations() const
Get set of flags for supported operations.
Generic color implementation with variable number of color components.
static QByteArray GetTypeName()
Common interface for data model objects, which can be changed.
virtual int GetPixelBitsCount() const
Get total number of bits per single pixel.
Bitmap implementation based on Qt QImage.
virtual icmm::CVarColor GetColorAt(const istd::CIndex2d &position) const
Get color at specified pixel.
virtual bool CreateBitmap(PixelFormat pixelFormat, const istd::CIndex2d &size, int pixelBitsCount=0, int componentsCount=0)
Create bitmap with specified size and format.
Base implementation of some iimg::IBitmap methods.
virtual int GetComponentsCount() const
Get number of color components.
virtual void ClearImage()
Cleat this image.
virtual bool CopyImageFrom(const QImage &image)
Copies the image data from a QImage object.
PixelFormat CalcFromQtFormat(QImage::Format imageFormat) const
virtual int GetLinesDifference() const
Get address difference between next and previous line.
virtual bool CopyFrom(const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
Copy this object from another one.
virtual istd::IChangeable * CloneMe(CompatibilityMode mode=CM_WITHOUT_REFS) const
Make a copy of this object.
virtual istd::CIndex2d GetImageSize() const
Get size of this raster image.
bool SetQImage(const QImage &image)