#include <qpaintengine_raster_p.h>
Definition at line 497 of file qpaintengine_raster_p.h.
◆ QRasterBuffer()
QRasterBuffer::QRasterBuffer |
( |
| ) |
|
|
inline |
◆ ~QRasterBuffer()
QRasterBuffer::~QRasterBuffer |
( |
| ) |
|
◆ buffer()
uchar* QRasterBuffer::buffer |
( |
| ) |
const |
|
inline |
◆ bufferImage()
QImage QRasterBuffer::bufferImage |
( |
| ) |
const |
Definition at line 4506 of file qpaintengine_raster.cpp.
4510 for (
int y = 0; y <
m_height; ++y) {
4511 uint *span = (
uint *)const_cast<QRasterBuffer *>(
this)->scanLine(y);
4513 for (
int x=0; x<
m_width; ++x) {
4514 uint argb = span[x];
4515 image.setPixel(x, y, argb);
The QImage class provides a hardware-independent image representation that allows direct access to th...
◆ bytesPerLine()
int QRasterBuffer::bytesPerLine |
( |
| ) |
const |
|
inline |
◆ bytesPerPixel()
int QRasterBuffer::bytesPerPixel |
( |
| ) |
const |
|
inline |
◆ colorizeBitmap()
Definition at line 3892 of file qpaintengine_raster.cpp.
Referenced by QRasterPaintEngine::drawPixmap(), and QRasterPaintEngine::drawTiledPixmap().
3902 int height = sourceImage.height();
3903 int width = sourceImage.width();
3904 for (
int y=0; y<
height; ++y) {
3905 uchar *source = sourceImage.scanLine(y);
3907 if (!source || !target)
3909 for (
int x=0; x <
width; ++x)
3910 target[x] = (source[x>>3] >> (x&7)) & 1 ? fg : bg;
Q_STATIC_INLINE_FUNCTION uint PREMUL(uint x)
The QImage class provides a hardware-independent image representation that allows direct access to th...
int depth() const
Returns the depth of the image.
QImage convertToFormat(Format f, Qt::ImageConversionFlags flags=Qt::AutoColor) const Q_REQUIRED_RESULT
Returns a copy of the image in the given format.
QRgb rgba() const
Returns the RGB value of the color, including its alpha.
uchar * scanLine(int)
Returns a pointer to the pixel data at the scanline with index i.
◆ flushToARGBImage()
void QRasterBuffer::flushToARGBImage |
( |
QImage * |
image | ) |
const |
Definition at line 4523 of file qpaintengine_raster.cpp.
4528 for (
int y=0; y<h; ++y) {
4529 uint *sourceLine = (
uint *)const_cast<QRasterBuffer *>(
this)->scanLine(y);
4530 QRgb *dest = (
QRgb *) target->scanLine(y);
4531 for (
int x=0; x<w; ++x) {
4532 QRgb pixel = sourceLine[x];
4533 int alpha =
qAlpha(pixel);
4537 dest[x] = (alpha << 24)
4538 | ((255*
qRed(pixel)/alpha) << 16)
4539 | ((255*
qGreen(pixel)/alpha) << 8)
4540 | ((255*
qBlue(pixel)/alpha) << 0);
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
Q_GUI_EXPORT_INLINE int qAlpha(QRgb rgb)
Q_GUI_EXPORT_INLINE int qRed(QRgb rgb)
Q_GUI_EXPORT_INLINE int qBlue(QRgb rgb)
Q_GUI_EXPORT_INLINE int qGreen(QRgb rgb)
◆ height()
int QRasterBuffer::height |
( |
| ) |
const |
|
inline |
◆ init()
void QRasterBuffer::init |
( |
| ) |
|
◆ prepare() [1/4]
Definition at line 3927 of file qpaintengine_raster.cpp.
Referenced by blendCursor(), QScreen::compose(), and QScreen::paintBackground().
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
int bytesPerLine() const
Returns the number of bytes per image scanline.
Format format() const
Returns the format of the image.
const int QT_RASTER_COORD_LIMIT
Q_STATIC_INLINE_FUNCTION uint PREMUL(uint x)
int depth() const
Returns the depth of the image.
DrawHelper qDrawHelper[QImage::NImageFormats]
uchar * bits()
Returns a pointer to the first pixel data.
int width() const
Returns the width of the image.
int height() const
Returns the height of the image.
int size() const
Returns the number of items in the vector.
QVector< QRgb > colorTable() const
Returns a list of the colors contained in the image's color table, or an empty list if the image does...
bool monoDestinationWithClut
◆ prepare() [2/4]
◆ prepare() [3/4]
Definition at line 3953 of file qpaintengine_raster.cpp.
3961 #ifndef QT_NO_RASTERCALLBACKS
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
virtual QImage::Format format() const
Returns the format of the device's memory buffet.
virtual int bytesPerLine() const
Returns the number of bytes per line in the framebuffer.
const int QT_RASTER_COORD_LIMIT
DrawHelper qDrawHelper[QImage::NImageFormats]
DrawHelper qDrawHelperCallback[QImage::NImageFormats]
virtual void * memory() const
Returns a pointer to the paint device's memory buffer, or 0 if no such buffer exists.
◆ prepare() [4/4]
void QRasterBuffer::prepare |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
◆ prepareBuffer()
void QRasterBuffer::prepareBuffer |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
◆ resetBuffer()
void QRasterBuffer::resetBuffer |
( |
int |
val = 0 | ) |
|
◆ scanLine()
uchar* QRasterBuffer::scanLine |
( |
int |
y | ) |
|
|
inline |
Definition at line 520 of file qpaintengine_raster_p.h.
Referenced by blend_color_argb(), blend_color_rgb16(), blend_tiled_argb(), blend_transformed_argb(), blend_transformed_tiled_argb(), blend_untransformed_argb(), blendColor(), blendTiled(), blendTransformed(), blendTransformedBilinear(), blendTransformedTiled(), blendUntransformed(), destFetch(), destFetchARGB32(), destFetchARGB32P(), destFetchMono(), destFetchMonoLsb(), destFetchRGB16(), destStore(), destStoreARGB32(), destStoreMono(), destStoreMonoLsb(), destStoreRGB16(), qt_alphamapblit_quint16(), qt_alphamapblit_quint32(), qt_alphargbblit_quint32(), qt_bitmapblit_template(), qt_blend_color_argb_x86(), and qt_gradient_quint32().
◆ width()
int QRasterBuffer::width |
( |
| ) |
const |
|
inline |
◆ bytes_per_line
int QRasterBuffer::bytes_per_line |
|
private |
◆ bytes_per_pixel
int QRasterBuffer::bytes_per_pixel |
|
private |
◆ compositionMode
Definition at line 539 of file qpaintengine_raster_p.h.
Referenced by blend_color_rgb16(), blend_transformed_argb(), blend_transformed_tiled_argb(), blendTiled(), blendTransformed(), blendTransformedBilinear(), blendTransformedTiled(), blendUntransformed(), QScreen::compose(), QRasterPaintEngine::drawImage(), fillRect_normalized(), getOperator(), qt_blend_color_argb_x86(), and qt_gradient_quint32().
◆ destColor0
QRgb QRasterBuffer::destColor0 |
◆ destColor1
QRgb QRasterBuffer::destColor1 |
◆ drawHelper
◆ format
◆ m_buffer
uchar* QRasterBuffer::m_buffer |
|
private |
◆ m_height
int QRasterBuffer::m_height |
|
private |
◆ m_width
int QRasterBuffer::m_width |
|
private |
◆ monoDestinationWithClut
bool QRasterBuffer::monoDestinationWithClut |
The documentation for this class was generated from the following files: