48 #include <private/qdrawhelper_p.h> 49 #include <private/qpixmap_raster_p.h> 64 w = widget->
width() - x;
81 qWarning(
"QPixmap::grabWindow(): Unable to copy pixels from framebuffer");
87 grabRect = screen->
mapToDevice(grabRect, screenSize);
95 img = img.
copy(grabRect);
101 case 1: matrix.
rotate(90);
break;
102 case 2: matrix.
rotate(180);
break;
103 case 3: matrix.
rotate(270);
break;
106 img = img.transformed(matrix);
110 img = img.rgbSwapped();
Q_GUI_EXPORT QScreen * qt_screen
static QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
Converts the given image to a pixmap using the specified flags to control the conversion.
QImage copy(const QRect &rect=QRect()) const
Returns a sub-area of the image as a new image.
int height() const
Returns the logical height of the framebuffer in pixels.
QPixmap()
Constructs a null pixmap.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
The QMatrix class specifies 2D transformations of a coordinate system.
QExplicitlySharedDataPointer< QPixmapData > data
QT_DEPRECATED int numCols() const
QRect translated(int dx, int dy) const
Returns a copy of the rectangle that is translated dx along the x axis and dy along the y axis...
int deviceWidth() const
Returns the physical width of the framebuffer device in pixels.
int bytesPerLine() const
Returns the number of bytes per image scanline.
QRect boundingRect() const
Returns the bounding rectangle of this region.
const uchar * qwsBits() const
virtual QSize mapToDevice(const QSize &) const
Maps the given size from the coordinate space used by the application to the framebuffer coordinate s...
virtual QRegion region() const
Returns the region covered by this screen driver.
int width() const
Returns the logical width of the framebuffer in pixels.
T * data() const
Returns a pointer to the shared data object.
#define QT_BEGIN_NAMESPACE
This macro expands to.
PixelType pixelType() const
Returns the pixel storage format of the screen.
int linestep() const
Returns the length of each scanline of the framebuffer in bytes.
QMatrix & rotate(qreal a)
Rotates the coordinate system the given degrees counterclockwise.
const T & at(int i) const
Returns the item at index position i in the list.
Q_CORE_EXPORT void qWarning(const char *,...)
The QImage class provides a hardware-independent image representation that allows direct access to th...
static QDesktopWidget * desktop()
Returns the desktop widget (also called the root window).
uchar * base() const
Returns a pointer to the beginning of the framebuffer.
uchar * bits()
Returns a pointer to the first pixel data.
QImage::Format pixelFormat() const
Returns the pixel format of the screen, or QImage::Format_Invalid if the pixel format is not a suppor...
int deviceHeight() const
Returns the full height of the framebuffer device in pixels.
int colorCount() const
Returns the size of the color table for the image.
virtual QList< QScreen * > subScreens() const
virtual bool isTransformed() const
Returns true if the screen is transformed (for instance, rotated 90 degrees); otherwise returns false...
The QPoint class defines a point in the plane using integer precision.
The QRect class defines a rectangle in the plane using integer precision.
The QScreen class is a base class for screen drivers in Qt for Embedded Linux.
virtual int transformOrientation() const
Returns the current rotation as an integer value.
The QPixmap class is an off-screen image representation that can be used as a paint device...
The QSize class defines the size of a two-dimensional object using integer point precision.
T * data()
Returns a pointer to the data stored in the vector.
static QPixmap grabWindow(WId, int x=0, int y=0, int w=-1, int h=-1)
Creates and returns a pixmap constructed by grabbing the contents of the given window restricted by Q...
void translate(int dx, int dy)
Moves the rectangle dx along the x axis and dy along the y axis, relative to the current position...
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...
QPoint topLeft() const
Returns the position of the rectangle's top-left corner.
int qwsBytesPerLine() const