131 #if !defined(Q_WS_WINCE) 148 cur = CreateIconIndirect(&ii);
152 #elif defined(GWES_ICONCURS) 162 int sysN =
qMax(1, sysW / 8);
169 for (
int i = 0; i < sysH; ++i) {
171 memset(&xBits[x] , 255, sysN);
172 memset(&xMask[x] , 0, sysN);
175 int fillWidth = n > sysN ? sysN : n;
178 for (
int j = 0; j < fillWidth; ++j) {
189 for (
int j = fillWidth; j < sysN; ++j ) {
197 cur = CreateCursor(
qWinAppInst(), hx, hy, sysW, sysH,
QImage toImage() const
Converts the pixmap to a QImage.
QSize size() const
Returns the size of the pixmap.
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
The QBitmap class provides monochrome (1-bit depth) pixmaps.
The QImage class provides a hardware-independent image representation that allows direct access to th...
int qGray(int r, int g, int b)
void fill(const QColor &fillColor=Qt::white)
Fills the pixmap with the given color.
int width() const
Returns the width 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.
HBITMAP toWinHBITMAP(HBitmapFormat format=NoAlpha) const
It is the caller's responsibility to free the HBITMAP data after use.
QBitmap mask() const
Extracts a bitmap mask from the pixmap's alpha channel.
int colorCount() const
Returns the size of the color table for the image.
int height() const
Returns the height of the image.
Q_CORE_EXPORT HINSTANCE qWinAppInst()
HBITMAP qt_createIconMask(const QBitmap &bitmap)
bool isNull() const
Returns true if this is a null pixmap; otherwise returns false.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
QRgb color(int i) const
Returns the color in the color table at index i.
uchar * scanLine(int)
Returns a pointer to the pixel data at the scanline with index i.