Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QRasterBuffer Class Reference

#include <qpaintengine_raster_p.h>

+ Collaboration diagram for QRasterBuffer:

Public Member Functions

 QRasterBuffer ()
 
 ~QRasterBuffer ()
 
void init ()
 
QImage::Format prepare (QImage *image)
 
ucharscanLine (int y)
 
int width () const
 
int height () const
 
qsizetype bytesPerLine () const
 
int bytesPerPixel () const
 
template<typename T >
int stride ()
 
ucharbuffer () const
 
QImage colorizeBitmap (const QImage &image, const QColor &color)
 

Public Attributes

bool monoDestinationWithClut
 
QRgb destColor0
 
QRgb destColor1
 
QPainter::CompositionMode compositionMode
 
QImage::Format format
 
QColorSpace colorSpace
 

Detailed Description

Definition at line 390 of file qpaintengine_raster_p.h.

Constructor & Destructor Documentation

◆ QRasterBuffer()

QRasterBuffer::QRasterBuffer ( )
inline

Definition at line 393 of file qpaintengine_raster_p.h.

References init().

+ Here is the call graph for this function:

◆ ~QRasterBuffer()

QRasterBuffer::~QRasterBuffer ( )

Definition at line 3742 of file qpaintengine_raster.cpp.

Member Function Documentation

◆ buffer()

uchar * QRasterBuffer::buffer ( ) const
inline

◆ bytesPerLine()

qsizetype QRasterBuffer::bytesPerLine ( ) const
inline

◆ bytesPerPixel()

int QRasterBuffer::bytesPerPixel ( ) const
inline

Definition at line 406 of file qpaintengine_raster_p.h.

Referenced by QRasterPaintEnginePrivate::blitImage(), and QRasterPaintEnginePrivate::drawImage().

+ Here is the caller graph for this function:

◆ colorizeBitmap()

QImage QRasterBuffer::colorizeBitmap ( const QImage image,
const QColor color 
)

Definition at line 3719 of file qpaintengine_raster.cpp.

References QImage::constScanLine(), QImage::Format_ARGB32_Premultiplied, QImage::Format_MonoLSB, QImage::height(), height(), QImage::isNull(), Q_ASSERT, qPremultiply(), QRgb, QImage::scanLine(), QImage::size(), QImage::width(), and width().

Referenced by QSpanData::setup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ height()

int QRasterBuffer::height ( ) const
inline

Definition at line 404 of file qpaintengine_raster_p.h.

Referenced by QRasterPaintEngine::alphaPenBlt(), colorizeBitmap(), qt_alphamapblit_argb32(), qt_alphamapblit_generic(), qt_alphamapblit_quint16(), qt_alphargbblit_argb32(), and qt_alphargbblit_generic().

+ Here is the caller graph for this function:

◆ init()

void QRasterBuffer::init ( )

Definition at line 3746 of file qpaintengine_raster.cpp.

References compositionMode, QPainter::CompositionMode_SourceOver, destColor0, destColor1, and monoDestinationWithClut.

Referenced by QRasterBuffer().

+ Here is the caller graph for this function:

◆ prepare()

QImage::Format QRasterBuffer::prepare ( QImage image)

Definition at line 3754 of file qpaintengine_raster.cpp.

References colorSpace, destColor0, destColor1, format, monoDestinationWithClut, qMin(), qPremultiply(), and QT_RASTER_COORD_LIMIT.

Referenced by QBlitterPaintEnginePrivate::lock().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ scanLine()

uchar * QRasterBuffer::scanLine ( int  y)
inline

◆ stride()

template<typename T >
int QRasterBuffer::stride ( )
inline

Definition at line 408 of file qpaintengine_raster_p.h.

Referenced by qt_alphamapblit_argb32(), qt_alphamapblit_quint16(), qt_alphargbblit_argb32(), and qt_bitmapblit_template().

+ Here is the caller graph for this function:

◆ width()

int QRasterBuffer::width ( ) const
inline

Definition at line 403 of file qpaintengine_raster_p.h.

Referenced by QRasterPaintEngine::alphaPenBlt(), and colorizeBitmap().

+ Here is the caller graph for this function:

Member Data Documentation

◆ colorSpace

QColorSpace QRasterBuffer::colorSpace

◆ compositionMode

QPainter::CompositionMode QRasterBuffer::compositionMode

◆ destColor0

QRgb QRasterBuffer::destColor0

◆ destColor1

QRgb QRasterBuffer::destColor1

◆ format

◆ monoDestinationWithClut

bool QRasterBuffer::monoDestinationWithClut

Definition at line 412 of file qpaintengine_raster_p.h.

Referenced by destStoreMono(), destStoreMonoLsb(), init(), and prepare().


The documentation for this class was generated from the following files: