/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt5.
 * 
 * This file may be used under the terms of the GNU General Public License
 * version 3.0 as published by the Free Software Foundation and appearing in
 * the file LICENSE included in the packaging of this file.  Please review the
 * following information to ensure the GNU General Public License version 3.0
 * requirements will be met: http://www.gnu.org/copyleft/gpl.html.
 * 
 * If you do not wish to use this file under the terms of the GPL version 3.0
 * then you may purchase a commercial license.  For more information contact
 * info@riverbankcomputing.com.
 * 
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#include "sipAPIQtGui.h"

#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"

#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qsize.sip"
#include <qsize.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
#line 27 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 39 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qcolortransform.sip"
#include <qcolortransform.h>
#line 42 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qcolorspace.sip"
#include <qcolorspace.h>
#line 45 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 48 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 51 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 54 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
#line 34 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qpixelformat.sip"
#include <qpixelformat.h>
#line 57 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
#line 30 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 60 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 63 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 66 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 69 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
#line 52 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 72 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
#line 30 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 75 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 78 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
#line 27 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 81 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qrect.sip"
#include <qrect.h>
#line 84 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"


class sipQImage : public  ::QImage
{
public:
    sipQImage();
    sipQImage(const  ::QSize&, ::QImage::Format);
    sipQImage(int,int, ::QImage::Format);
    sipQImage(const  ::uchar*,int,int, ::QImage::Format);
    sipQImage( ::uchar*,int,int, ::QImage::Format);
    sipQImage(const  ::uchar*,int,int,int, ::QImage::Format);
    sipQImage( ::uchar*,int,int,int, ::QImage::Format);
    sipQImage(const char**);
    sipQImage(const  ::QString&,const char*);
    sipQImage(const  ::QImage&);
    virtual ~sipQImage();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int devType() const SIP_OVERRIDE;
     ::QPaintEngine* paintEngine() const SIP_OVERRIDE;
    int metric( ::QPaintDevice::PaintDeviceMetric) const SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQImage(const sipQImage &);
    sipQImage &operator = (const sipQImage &);

    char sipPyMethods[3];
};

sipQImage::sipQImage():  ::QImage(), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage(const  ::QSize& a0, ::QImage::Format a1):  ::QImage(a0,a1), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage(int a0,int a1, ::QImage::Format a2):  ::QImage(a0,a1,a2), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage(const  ::uchar*a0,int a1,int a2, ::QImage::Format a3):  ::QImage(a0,a1,a2,a3), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage( ::uchar*a0,int a1,int a2, ::QImage::Format a3):  ::QImage(a0,a1,a2,a3), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage(const  ::uchar*a0,int a1,int a2,int a3, ::QImage::Format a4):  ::QImage(a0,a1,a2,a3,a4), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage( ::uchar*a0,int a1,int a2,int a3, ::QImage::Format a4):  ::QImage(a0,a1,a2,a3,a4), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage(const char**a0):  ::QImage(a0), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage(const  ::QString& a0,const char*a1):  ::QImage(a0,a1), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage(const  ::QImage& a0):  ::QImage(a0), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::~sipQImage()
{
    sipInstanceDestroyedEx(&sipPySelf);
}

int sipQImage::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[0]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_devType);

    if (!sipMeth)
        return  ::QImage::devType();

    extern int sipVH_QtGui_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_8(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QPaintEngine* sipQImage::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[1]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_paintEngine);

    if (!sipMeth)
        return  ::QImage::paintEngine();

    extern  ::QPaintEngine* sipVH_QtGui_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_17(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

int sipQImage::metric( ::QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[2]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_metric);

    if (!sipMeth)
        return  ::QImage::metric(a0);

    extern int sipVH_QtGui_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_18(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}


PyDoc_STRVAR(doc_QImage_isNull, "isNull(self) -> bool");

extern "C" {static PyObject *meth_QImage_isNull(PyObject *, PyObject *);}
static PyObject *meth_QImage_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isNull();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_isNull, doc_QImage_isNull);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_devType, "devType(self) -> int");

extern "C" {static PyObject *meth_QImage_devType(PyObject *, PyObject *);}
static PyObject *meth_QImage_devType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = (sipSelfWasArg ? sipCpp-> ::QImage::devType() : sipCpp->devType());

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_devType, doc_QImage_devType);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_detach, "detach(self)");

extern "C" {static PyObject *meth_QImage_detach(PyObject *, PyObject *);}
static PyObject *meth_QImage_detach(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            sipCpp->detach();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_detach, doc_QImage_detach);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_isDetached, "isDetached(self) -> bool");

extern "C" {static PyObject *meth_QImage_isDetached(PyObject *, PyObject *);}
static PyObject *meth_QImage_isDetached(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isDetached();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_isDetached, doc_QImage_isDetached);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_copy, "copy(self, rect: QRect = QRect()) -> QImage\n"
"copy(self, int, int, int, int) -> QImage");

extern "C" {static PyObject *meth_QImage_copy(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_copy(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QRect& a0def = QRect();
        const  ::QRect* a0 = &a0def;
        const  ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            sipName_rect,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|J9", &sipSelf, sipType_QImage, &sipCpp, sipType_QRect, &a0))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->copy(*a0));

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        const  ::QImage *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "Biiii", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1, &a2, &a3))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->copy(a0,a1,a2,a3));

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_copy, doc_QImage_copy);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_format, "format(self) -> QImage.Format");

extern "C" {static PyObject *meth_QImage_format(PyObject *, PyObject *);}
static PyObject *meth_QImage_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
             ::QImage::Format sipRes;

            sipRes = sipCpp->format();

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_QImage_Format);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_format, doc_QImage_format);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_convertToFormat, "convertToFormat(self, QImage.Format, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = Qt.ImageConversionFlag.AutoColor) -> QImage\n"
"convertToFormat(self, QImage.Format, Iterable[int], flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = Qt.ImageConversionFlag.AutoColor) -> QImage");

extern "C" {static PyObject *meth_QImage_convertToFormat(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_convertToFormat(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QImage::Format a0;
         ::Qt::ImageConversionFlags a1def = Qt::ImageConversionFlag::AutoColor;
         ::Qt::ImageConversionFlags* a1 = &a1def;
        int a1State = 0;
        const  ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE|J1", &sipSelf, sipType_QImage, &sipCpp, sipType_QImage_Format, &a0, sipType_Qt_ImageConversionFlags, &a1, &a1State))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->convertToFormat(a0,*a1));
            sipReleaseType(a1, sipType_Qt_ImageConversionFlags, a1State);

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    {
         ::QImage::Format a0;
        const  ::QVector<uint>* a1;
        int a1State = 0;
         ::Qt::ImageConversionFlags a2def = Qt::ImageConversionFlag::AutoColor;
         ::Qt::ImageConversionFlags* a2 = &a2def;
        int a2State = 0;
        const  ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            SIP_NULLPTR,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BEJ1|J1", &sipSelf, sipType_QImage, &sipCpp, sipType_QImage_Format, &a0, sipType_QVector_1900, &a1, &a1State, sipType_Qt_ImageConversionFlags, &a2, &a2State))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->convertToFormat(a0,*a1,*a2));
            sipReleaseType(const_cast< ::QVector<uint> *>(a1), sipType_QVector_1900, a1State);
            sipReleaseType(a2, sipType_Qt_ImageConversionFlags, a2State);

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_convertToFormat, doc_QImage_convertToFormat);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_width, "width(self) -> int");

extern "C" {static PyObject *meth_QImage_width(PyObject *, PyObject *);}
static PyObject *meth_QImage_width(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->width();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_width, doc_QImage_width);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_height, "height(self) -> int");

extern "C" {static PyObject *meth_QImage_height(PyObject *, PyObject *);}
static PyObject *meth_QImage_height(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->height();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_height, doc_QImage_height);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_size, "size(self) -> QSize");

extern "C" {static PyObject *meth_QImage_size(PyObject *, PyObject *);}
static PyObject *meth_QImage_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
             ::QSize*sipRes;

            sipRes = new  ::QSize(sipCpp->size());

            return sipConvertFromNewType(sipRes,sipType_QSize,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_size, doc_QImage_size);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_rect, "rect(self) -> QRect");

extern "C" {static PyObject *meth_QImage_rect(PyObject *, PyObject *);}
static PyObject *meth_QImage_rect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
             ::QRect*sipRes;

            sipRes = new  ::QRect(sipCpp->rect());

            return sipConvertFromNewType(sipRes,sipType_QRect,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_rect, doc_QImage_rect);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_depth, "depth(self) -> int");

extern "C" {static PyObject *meth_QImage_depth(PyObject *, PyObject *);}
static PyObject *meth_QImage_depth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->depth();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_depth, doc_QImage_depth);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_color, "color(self, int) -> int");

extern "C" {static PyObject *meth_QImage_color(PyObject *, PyObject *);}
static PyObject *meth_QImage_color(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0;
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
             ::QRgb sipRes;

            sipRes = sipCpp->color(a0);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_color, doc_QImage_color);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_setColor, "setColor(self, int, int)");

extern "C" {static PyObject *meth_QImage_setColor(PyObject *, PyObject *);}
static PyObject *meth_QImage_setColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0;
         ::QRgb a1;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biu", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1))
        {
            sipCpp->setColor(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_setColor, doc_QImage_setColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_allGray, "allGray(self) -> bool");

extern "C" {static PyObject *meth_QImage_allGray(PyObject *, PyObject *);}
static PyObject *meth_QImage_allGray(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->allGray();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_allGray, doc_QImage_allGray);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_isGrayscale, "isGrayscale(self) -> bool");

extern "C" {static PyObject *meth_QImage_isGrayscale(PyObject *, PyObject *);}
static PyObject *meth_QImage_isGrayscale(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isGrayscale();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_isGrayscale, doc_QImage_isGrayscale);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_bits, "bits(self) -> PyQt5.sip.voidptr");

extern "C" {static PyObject *meth_QImage_bits(PyObject *, PyObject *);}
static PyObject *meth_QImage_bits(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            void*sipRes;

            sipRes = sipCpp->bits();

            return sipConvertFromVoidPtr(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_bits, doc_QImage_bits);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_constBits, "constBits(self) -> PyQt5.sip.voidptr");

extern "C" {static PyObject *meth_QImage_constBits(PyObject *, PyObject *);}
static PyObject *meth_QImage_constBits(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            const void*sipRes;

            sipRes = sipCpp->constBits();

            return sipConvertFromConstVoidPtr(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_constBits, doc_QImage_constBits);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_scanLine, "scanLine(self, int) -> PyQt5.sip.voidptr");

extern "C" {static PyObject *meth_QImage_scanLine(PyObject *, PyObject *);}
static PyObject *meth_QImage_scanLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
            void*sipRes;

            sipRes = sipCpp->scanLine(a0);

            return sipConvertFromVoidPtr(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_scanLine, doc_QImage_scanLine);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_constScanLine, "constScanLine(self, int) -> PyQt5.sip.voidptr");

extern "C" {static PyObject *meth_QImage_constScanLine(PyObject *, PyObject *);}
static PyObject *meth_QImage_constScanLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0;
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
            const void*sipRes;

            sipRes = sipCpp->constScanLine(a0);

            return sipConvertFromConstVoidPtr(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_constScanLine, doc_QImage_constScanLine);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_bytesPerLine, "bytesPerLine(self) -> int");

extern "C" {static PyObject *meth_QImage_bytesPerLine(PyObject *, PyObject *);}
static PyObject *meth_QImage_bytesPerLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->bytesPerLine();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_bytesPerLine, doc_QImage_bytesPerLine);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_valid, "valid(self, QPoint) -> bool\n"
"valid(self, int, int) -> bool");

extern "C" {static PyObject *meth_QImage_valid(PyObject *, PyObject *);}
static PyObject *meth_QImage_valid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QPoint* a0;
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImage, &sipCpp, sipType_QPoint, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->valid(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        int a0;
        int a1;
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->valid(a0,a1);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_valid, doc_QImage_valid);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_pixelIndex, "pixelIndex(self, QPoint) -> int\n"
"pixelIndex(self, int, int) -> int");

extern "C" {static PyObject *meth_QImage_pixelIndex(PyObject *, PyObject *);}
static PyObject *meth_QImage_pixelIndex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QPoint* a0;
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImage, &sipCpp, sipType_QPoint, &a0))
        {
            int sipRes;

            sipRes = sipCpp->pixelIndex(*a0);

            return PyLong_FromLong(sipRes);
        }
    }

    {
        int a0;
        int a1;
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1))
        {
            int sipRes;

            sipRes = sipCpp->pixelIndex(a0,a1);

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_pixelIndex, doc_QImage_pixelIndex);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_pixel, "pixel(self, QPoint) -> int\n"
"pixel(self, int, int) -> int");

extern "C" {static PyObject *meth_QImage_pixel(PyObject *, PyObject *);}
static PyObject *meth_QImage_pixel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QPoint* a0;
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImage, &sipCpp, sipType_QPoint, &a0))
        {
             ::QRgb sipRes;

            sipRes = sipCpp->pixel(*a0);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    {
        int a0;
        int a1;
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1))
        {
             ::QRgb sipRes;

            sipRes = sipCpp->pixel(a0,a1);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_pixel, doc_QImage_pixel);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_setPixel, "setPixel(self, QPoint, int)\n"
"setPixel(self, int, int, int)");

extern "C" {static PyObject *meth_QImage_setPixel(PyObject *, PyObject *);}
static PyObject *meth_QImage_setPixel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QPoint* a0;
         ::uint a1;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9u", &sipSelf, sipType_QImage, &sipCpp, sipType_QPoint, &a0, &a1))
        {
            sipCpp->setPixel(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
         ::uint a2;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biiu", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1, &a2))
        {
            sipCpp->setPixel(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_setPixel, doc_QImage_setPixel);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_colorTable, "colorTable(self) -> List[int]");

extern "C" {static PyObject *meth_QImage_colorTable(PyObject *, PyObject *);}
static PyObject *meth_QImage_colorTable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
             ::QVector<uint>*sipRes;

            sipRes = new  ::QVector<uint>(sipCpp->colorTable());

            return sipConvertFromNewType(sipRes,sipType_QVector_1900,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_colorTable, doc_QImage_colorTable);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_setColorTable, "setColorTable(self, Iterable[int])");

extern "C" {static PyObject *meth_QImage_setColorTable(PyObject *, PyObject *);}
static PyObject *meth_QImage_setColorTable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QVector<uint>* a0;
        int a0State = 0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QImage, &sipCpp, sipType_QVector_1900, &a0, &a0State))
        {
            sipCpp->setColorTable(*a0);
            sipReleaseType(const_cast< ::QVector<uint> *>(a0), sipType_QVector_1900, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_setColorTable, doc_QImage_setColorTable);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_fill, "fill(self, Qt.GlobalColor)\n"
"fill(self, Union[QColor, Qt.GlobalColor, QGradient])\n"
"fill(self, int)");

extern "C" {static PyObject *meth_QImage_fill(PyObject *, PyObject *);}
static PyObject *meth_QImage_fill(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::Qt::GlobalColor a0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BXE", &sipSelf, sipType_QImage, &sipCpp, sipType_Qt_GlobalColor, &a0))
        {
            sipCpp->fill(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const  ::QColor* a0;
        int a0State = 0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QImage, &sipCpp, sipType_QColor, &a0, &a0State))
        {
            sipCpp->fill(*a0);
            sipReleaseType(const_cast< ::QColor *>(a0), sipType_QColor, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
         ::uint a0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
            sipCpp->fill(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_fill, doc_QImage_fill);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_hasAlphaChannel, "hasAlphaChannel(self) -> bool");

extern "C" {static PyObject *meth_QImage_hasAlphaChannel(PyObject *, PyObject *);}
static PyObject *meth_QImage_hasAlphaChannel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->hasAlphaChannel();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_hasAlphaChannel, doc_QImage_hasAlphaChannel);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_setAlphaChannel, "setAlphaChannel(self, QImage)");

extern "C" {static PyObject *meth_QImage_setAlphaChannel(PyObject *, PyObject *);}
static PyObject *meth_QImage_setAlphaChannel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage* a0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImage, &sipCpp, sipType_QImage, &a0))
        {
            sipCpp->setAlphaChannel(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_setAlphaChannel, doc_QImage_setAlphaChannel);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_createAlphaMask, "createAlphaMask(self, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = Qt.ImageConversionFlag.AutoColor) -> QImage");

extern "C" {static PyObject *meth_QImage_createAlphaMask(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_createAlphaMask(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::Qt::ImageConversionFlags a0def = Qt::ImageConversionFlag::AutoColor;
         ::Qt::ImageConversionFlags* a0 = &a0def;
        int a0State = 0;
        const  ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|J1", &sipSelf, sipType_QImage, &sipCpp, sipType_Qt_ImageConversionFlags, &a0, &a0State))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->createAlphaMask(*a0));
            sipReleaseType(a0, sipType_Qt_ImageConversionFlags, a0State);

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_createAlphaMask, doc_QImage_createAlphaMask);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_createHeuristicMask, "createHeuristicMask(self, clipTight: bool = True) -> QImage");

extern "C" {static PyObject *meth_QImage_createHeuristicMask(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_createHeuristicMask(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        bool a0 = 1;
        const  ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            sipName_clipTight,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|b", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->createHeuristicMask(a0));

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_createHeuristicMask, doc_QImage_createHeuristicMask);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_scaled, "scaled(self, int, int, aspectRatioMode: Qt.AspectRatioMode = Qt.IgnoreAspectRatio, transformMode: Qt.TransformationMode = Qt.FastTransformation) -> QImage\n"
"scaled(self, QSize, aspectRatioMode: Qt.AspectRatioMode = Qt.IgnoreAspectRatio, transformMode: Qt.TransformationMode = Qt.FastTransformation) -> QImage");

extern "C" {static PyObject *meth_QImage_scaled(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_scaled(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0;
        int a1;
         ::Qt::AspectRatioMode a2 = Qt::IgnoreAspectRatio;
         ::Qt::TransformationMode a3 = Qt::FastTransformation;
        const  ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            SIP_NULLPTR,
            sipName_aspectRatioMode,
            sipName_transformMode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii|EE", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1, sipType_Qt_AspectRatioMode, &a2, sipType_Qt_TransformationMode, &a3))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->scaled(a0,a1,a2,a3));

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    {
        const  ::QSize* a0;
         ::Qt::AspectRatioMode a1 = Qt::IgnoreAspectRatio;
         ::Qt::TransformationMode a2 = Qt::FastTransformation;
        const  ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_aspectRatioMode,
            sipName_transformMode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9|EE", &sipSelf, sipType_QImage, &sipCpp, sipType_QSize, &a0, sipType_Qt_AspectRatioMode, &a1, sipType_Qt_TransformationMode, &a2))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->scaled(*a0,a1,a2));

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_scaled, doc_QImage_scaled);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_scaledToWidth, "scaledToWidth(self, int, mode: Qt.TransformationMode = Qt.FastTransformation) -> QImage");

extern "C" {static PyObject *meth_QImage_scaledToWidth(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_scaledToWidth(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0;
         ::Qt::TransformationMode a1 = Qt::FastTransformation;
        const  ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi|E", &sipSelf, sipType_QImage, &sipCpp, &a0, sipType_Qt_TransformationMode, &a1))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->scaledToWidth(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_scaledToWidth, doc_QImage_scaledToWidth);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_scaledToHeight, "scaledToHeight(self, int, mode: Qt.TransformationMode = Qt.FastTransformation) -> QImage");

extern "C" {static PyObject *meth_QImage_scaledToHeight(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_scaledToHeight(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0;
         ::Qt::TransformationMode a1 = Qt::FastTransformation;
        const  ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi|E", &sipSelf, sipType_QImage, &sipCpp, &a0, sipType_Qt_TransformationMode, &a1))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->scaledToHeight(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_scaledToHeight, doc_QImage_scaledToHeight);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_mirrored, "mirrored(self, horizontal: bool = False, vertical: bool = True) -> QImage");

extern "C" {static PyObject *meth_QImage_mirrored(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_mirrored(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        bool a0 = 0;
        bool a1 = 1;
        const  ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            sipName_horizontal,
            sipName_vertical,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|bb", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->mirrored(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_mirrored, doc_QImage_mirrored);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_rgbSwapped, "rgbSwapped(self) -> QImage");

extern "C" {static PyObject *meth_QImage_rgbSwapped(PyObject *, PyObject *);}
static PyObject *meth_QImage_rgbSwapped(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->rgbSwapped());

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_rgbSwapped, doc_QImage_rgbSwapped);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_invertPixels, "invertPixels(self, mode: QImage.InvertMode = QImage.InvertRgb)");

extern "C" {static PyObject *meth_QImage_invertPixels(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_invertPixels(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QImage::InvertMode a0 = QImage::InvertRgb;
         ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|E", &sipSelf, sipType_QImage, &sipCpp, sipType_QImage_InvertMode, &a0))
        {
            sipCpp->invertPixels(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_invertPixels, doc_QImage_invertPixels);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_load, "load(self, QIODevice, str) -> bool\n"
"load(self, str, format: str = None) -> bool");

extern "C" {static PyObject *meth_QImage_load(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_load(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QIODevice* a0;
        const char* a1;
        PyObject *a1Keep;
         ::QImage *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "BJ8AA", &sipSelf, sipType_QImage, &sipCpp, sipType_QIODevice, &a0, &a1Keep, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->load(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
         ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|AA", &sipSelf, sipType_QImage, &sipCpp, sipType_QString, &a0, &a0State, &a1Keep, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->load(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);
            Py_XDECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_load, doc_QImage_load);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_loadFromData, "loadFromData(self, PyQt5.sip.array[bytes], format: str = None) -> bool\n"
"loadFromData(self, Union[QByteArray, bytes, bytearray], format: str = None) -> bool");

extern "C" {static PyObject *meth_QImage_loadFromData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_loadFromData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::uchar* a0;
        Py_ssize_t a1;
        const char* a2 = 0;
        PyObject *a2Keep = 0;
         ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            SIP_NULLPTR,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bk|AA", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1, &a2Keep, &a2))
        {
            bool sipRes;

            sipRes = sipCpp->loadFromData(a0,(int)a1,a2);
            Py_XDECREF(a2Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const  ::QByteArray* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
         ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|AA", &sipSelf, sipType_QImage, &sipCpp, sipType_QByteArray, &a0, &a0State, &a1Keep, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->loadFromData(*a0,a1);
            sipReleaseType(const_cast< ::QByteArray *>(a0), sipType_QByteArray, a0State);
            Py_XDECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_loadFromData, doc_QImage_loadFromData);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_save, "save(self, str, format: str = None, quality: int = -1) -> bool\n"
"save(self, QIODevice, format: str = None, quality: int = -1) -> bool");

extern "C" {static PyObject *meth_QImage_save(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_save(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QString* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
        int a2 = -1;
        const  ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_format,
            sipName_quality,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|AAi", &sipSelf, sipType_QImage, &sipCpp, sipType_QString, &a0, &a0State, &a1Keep, &a1, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->save(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);
            Py_XDECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    {
         ::QIODevice* a0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
        int a2 = -1;
        const  ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_format,
            sipName_quality,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8|AAi", &sipSelf, sipType_QImage, &sipCpp, sipType_QIODevice, &a0, &a1Keep, &a1, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->save(a0,a1,a2);
            Py_END_ALLOW_THREADS
            Py_XDECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_save, doc_QImage_save);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_fromData, "fromData(PyQt5.sip.array[bytes], format: str = None) -> QImage\n"
"fromData(Union[QByteArray, bytes, bytearray], format: str = None) -> QImage");

extern "C" {static PyObject *meth_QImage_fromData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_fromData(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::uchar* a0;
        Py_ssize_t a1;
        const char* a2 = 0;
        PyObject *a2Keep = 0;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            SIP_NULLPTR,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "k|AA", &a0, &a1, &a2Keep, &a2))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage( ::QImage::fromData(a0,(int)a1,a2));
            Py_XDECREF(a2Keep);

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    {
        const  ::QByteArray* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "J1|AA", sipType_QByteArray, &a0, &a0State, &a1Keep, &a1))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage( ::QImage::fromData(*a0,a1));
            sipReleaseType(const_cast< ::QByteArray *>(a0), sipType_QByteArray, a0State);
            Py_XDECREF(a1Keep);

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_fromData, doc_QImage_fromData);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_paintEngine, "paintEngine(self) -> QPaintEngine");

extern "C" {static PyObject *meth_QImage_paintEngine(PyObject *, PyObject *);}
static PyObject *meth_QImage_paintEngine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
             ::QPaintEngine*sipRes;

            sipRes = (sipSelfWasArg ? sipCpp-> ::QImage::paintEngine() : sipCpp->paintEngine());

            return sipConvertFromType(sipRes,sipType_QPaintEngine,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_paintEngine, doc_QImage_paintEngine);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_dotsPerMeterX, "dotsPerMeterX(self) -> int");

extern "C" {static PyObject *meth_QImage_dotsPerMeterX(PyObject *, PyObject *);}
static PyObject *meth_QImage_dotsPerMeterX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->dotsPerMeterX();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_dotsPerMeterX, doc_QImage_dotsPerMeterX);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_dotsPerMeterY, "dotsPerMeterY(self) -> int");

extern "C" {static PyObject *meth_QImage_dotsPerMeterY(PyObject *, PyObject *);}
static PyObject *meth_QImage_dotsPerMeterY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->dotsPerMeterY();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_dotsPerMeterY, doc_QImage_dotsPerMeterY);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_setDotsPerMeterX, "setDotsPerMeterX(self, int)");

extern "C" {static PyObject *meth_QImage_setDotsPerMeterX(PyObject *, PyObject *);}
static PyObject *meth_QImage_setDotsPerMeterX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
            sipCpp->setDotsPerMeterX(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_setDotsPerMeterX, doc_QImage_setDotsPerMeterX);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_setDotsPerMeterY, "setDotsPerMeterY(self, int)");

extern "C" {static PyObject *meth_QImage_setDotsPerMeterY(PyObject *, PyObject *);}
static PyObject *meth_QImage_setDotsPerMeterY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
            sipCpp->setDotsPerMeterY(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_setDotsPerMeterY, doc_QImage_setDotsPerMeterY);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_offset, "offset(self) -> QPoint");

extern "C" {static PyObject *meth_QImage_offset(PyObject *, PyObject *);}
static PyObject *meth_QImage_offset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
             ::QPoint*sipRes;

            sipRes = new  ::QPoint(sipCpp->offset());

            return sipConvertFromNewType(sipRes,sipType_QPoint,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_offset, doc_QImage_offset);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_setOffset, "setOffset(self, QPoint)");

extern "C" {static PyObject *meth_QImage_setOffset(PyObject *, PyObject *);}
static PyObject *meth_QImage_setOffset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QPoint* a0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImage, &sipCpp, sipType_QPoint, &a0))
        {
            sipCpp->setOffset(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_setOffset, doc_QImage_setOffset);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_textKeys, "textKeys(self) -> List[str]");

extern "C" {static PyObject *meth_QImage_textKeys(PyObject *, PyObject *);}
static PyObject *meth_QImage_textKeys(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
             ::QStringList*sipRes;

            sipRes = new  ::QStringList(sipCpp->textKeys());

            return sipConvertFromNewType(sipRes,sipType_QStringList,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_textKeys, doc_QImage_textKeys);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_text, "text(self, key: str = '') -> str");

extern "C" {static PyObject *meth_QImage_text(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_text(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QString& a0def = QString();
        const  ::QString* a0 = &a0def;
        int a0State = 0;
        const  ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            sipName_key,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|J1", &sipSelf, sipType_QImage, &sipCpp, sipType_QString, &a0, &a0State))
        {
             ::QString*sipRes;

            sipRes = new  ::QString(sipCpp->text(*a0));
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_text, doc_QImage_text);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_setText, "setText(self, str, str)");

extern "C" {static PyObject *meth_QImage_setText(PyObject *, PyObject *);}
static PyObject *meth_QImage_setText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QString* a0;
        int a0State = 0;
        const  ::QString* a1;
        int a1State = 0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QImage, &sipCpp, sipType_QString, &a0, &a0State, sipType_QString, &a1, &a1State))
        {
            sipCpp->setText(*a0,*a1);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);
            sipReleaseType(const_cast< ::QString *>(a1), sipType_QString, a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_setText, doc_QImage_setText);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_metric, "metric(self, QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QImage_metric(PyObject *, PyObject *);}
static PyObject *meth_QImage_metric(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QPaintDevice::PaintDeviceMetric a0;
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pE", &sipSelf, sipType_QImage, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = (sipSelfWasArg ? sipCpp-> ::QImage::metric(a0) : sipCpp->metric(a0));

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_metric, doc_QImage_metric);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_smoothScaled, "smoothScaled(self, int, int) -> QImage");

extern "C" {static PyObject *meth_QImage_smoothScaled(PyObject *, PyObject *);}
static PyObject *meth_QImage_smoothScaled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0;
        int a1;
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pii", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->smoothScaled(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_smoothScaled, doc_QImage_smoothScaled);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_createMaskFromColor, "createMaskFromColor(self, int, mode: Qt.MaskMode = Qt.MaskInColor) -> QImage");

extern "C" {static PyObject *meth_QImage_createMaskFromColor(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_createMaskFromColor(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QRgb a0;
         ::Qt::MaskMode a1 = Qt::MaskInColor;
        const  ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bu|E", &sipSelf, sipType_QImage, &sipCpp, &a0, sipType_Qt_MaskMode, &a1))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->createMaskFromColor(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_createMaskFromColor, doc_QImage_createMaskFromColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_transformed, "transformed(self, QTransform, mode: Qt.TransformationMode = Qt.FastTransformation) -> QImage");

extern "C" {static PyObject *meth_QImage_transformed(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_transformed(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QTransform* a0;
         ::Qt::TransformationMode a1 = Qt::FastTransformation;
        const  ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9|E", &sipSelf, sipType_QImage, &sipCpp, sipType_QTransform, &a0, sipType_Qt_TransformationMode, &a1))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->transformed(*a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_transformed, doc_QImage_transformed);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_trueMatrix, "trueMatrix(QTransform, int, int) -> QTransform");

extern "C" {static PyObject *meth_QImage_trueMatrix(PyObject *, PyObject *);}
static PyObject *meth_QImage_trueMatrix(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QTransform* a0;
        int a1;
        int a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9ii", sipType_QTransform, &a0, &a1, &a2))
        {
             ::QTransform*sipRes;

            sipRes = new  ::QTransform( ::QImage::trueMatrix(*a0,a1,a2));

            return sipConvertFromNewType(sipRes,sipType_QTransform,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_trueMatrix, doc_QImage_trueMatrix);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_cacheKey, "cacheKey(self) -> int");

extern "C" {static PyObject *meth_QImage_cacheKey(PyObject *, PyObject *);}
static PyObject *meth_QImage_cacheKey(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
             ::qint64 sipRes;

            sipRes = sipCpp->cacheKey();

            return PyLong_FromLongLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_cacheKey, doc_QImage_cacheKey);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_colorCount, "colorCount(self) -> int");

extern "C" {static PyObject *meth_QImage_colorCount(PyObject *, PyObject *);}
static PyObject *meth_QImage_colorCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->colorCount();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_colorCount, doc_QImage_colorCount);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_setColorCount, "setColorCount(self, int)");

extern "C" {static PyObject *meth_QImage_setColorCount(PyObject *, PyObject *);}
static PyObject *meth_QImage_setColorCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
            sipCpp->setColorCount(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_setColorCount, doc_QImage_setColorCount);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_byteCount, "byteCount(self) -> int");

extern "C" {static PyObject *meth_QImage_byteCount(PyObject *, PyObject *);}
static PyObject *meth_QImage_byteCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->byteCount();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_byteCount, doc_QImage_byteCount);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_bitPlaneCount, "bitPlaneCount(self) -> int");

extern "C" {static PyObject *meth_QImage_bitPlaneCount(PyObject *, PyObject *);}
static PyObject *meth_QImage_bitPlaneCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->bitPlaneCount();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_bitPlaneCount, doc_QImage_bitPlaneCount);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_swap, "swap(self, QImage)");

extern "C" {static PyObject *meth_QImage_swap(PyObject *, PyObject *);}
static PyObject *meth_QImage_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QImage* a0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImage, &sipCpp, sipType_QImage, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_swap, doc_QImage_swap);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_devicePixelRatio, "devicePixelRatio(self) -> float");

extern "C" {static PyObject *meth_QImage_devicePixelRatio(PyObject *, PyObject *);}
static PyObject *meth_QImage_devicePixelRatio(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
             ::qreal sipRes;

            sipRes = sipCpp->devicePixelRatio();

            return PyFloat_FromDouble(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_devicePixelRatio, doc_QImage_devicePixelRatio);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_setDevicePixelRatio, "setDevicePixelRatio(self, float)");

extern "C" {static PyObject *meth_QImage_setDevicePixelRatio(PyObject *, PyObject *);}
static PyObject *meth_QImage_setDevicePixelRatio(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::qreal a0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
            sipCpp->setDevicePixelRatio(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_setDevicePixelRatio, doc_QImage_setDevicePixelRatio);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_pixelFormat, "pixelFormat(self) -> QPixelFormat");

extern "C" {static PyObject *meth_QImage_pixelFormat(PyObject *, PyObject *);}
static PyObject *meth_QImage_pixelFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
             ::QPixelFormat*sipRes;

            sipRes = new  ::QPixelFormat(sipCpp->pixelFormat());

            return sipConvertFromNewType(sipRes,sipType_QPixelFormat,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_pixelFormat, doc_QImage_pixelFormat);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_toPixelFormat, "toPixelFormat(QImage.Format) -> QPixelFormat");

extern "C" {static PyObject *meth_QImage_toPixelFormat(PyObject *, PyObject *);}
static PyObject *meth_QImage_toPixelFormat(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QImage::Format a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_QImage_Format, &a0))
        {
             ::QPixelFormat*sipRes;

            sipRes = new  ::QPixelFormat( ::QImage::toPixelFormat(a0));

            return sipConvertFromNewType(sipRes,sipType_QPixelFormat,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_toPixelFormat, doc_QImage_toPixelFormat);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_toImageFormat, "toImageFormat(QPixelFormat) -> QImage.Format");

extern "C" {static PyObject *meth_QImage_toImageFormat(PyObject *, PyObject *);}
static PyObject *meth_QImage_toImageFormat(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QPixelFormat* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QPixelFormat, &a0))
        {
             ::QImage::Format sipRes;

            sipRes =  ::QImage::toImageFormat(*a0);

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_QImage_Format);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_toImageFormat, doc_QImage_toImageFormat);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_pixelColor, "pixelColor(self, int, int) -> QColor\n"
"pixelColor(self, QPoint) -> QColor");

extern "C" {static PyObject *meth_QImage_pixelColor(PyObject *, PyObject *);}
static PyObject *meth_QImage_pixelColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0;
        int a1;
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1))
        {
             ::QColor*sipRes;

            sipRes = new  ::QColor(sipCpp->pixelColor(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QColor,SIP_NULLPTR);
        }
    }

    {
        const  ::QPoint* a0;
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImage, &sipCpp, sipType_QPoint, &a0))
        {
             ::QColor*sipRes;

            sipRes = new  ::QColor(sipCpp->pixelColor(*a0));

            return sipConvertFromNewType(sipRes,sipType_QColor,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_pixelColor, doc_QImage_pixelColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_setPixelColor, "setPixelColor(self, int, int, Union[QColor, Qt.GlobalColor, QGradient])\n"
"setPixelColor(self, QPoint, Union[QColor, Qt.GlobalColor, QGradient])");

extern "C" {static PyObject *meth_QImage_setPixelColor(PyObject *, PyObject *);}
static PyObject *meth_QImage_setPixelColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0;
        int a1;
        const  ::QColor* a2;
        int a2State = 0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiJ1", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1, sipType_QColor, &a2, &a2State))
        {
            sipCpp->setPixelColor(a0,a1,*a2);
            sipReleaseType(const_cast< ::QColor *>(a2), sipType_QColor, a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const  ::QPoint* a0;
        const  ::QColor* a1;
        int a1State = 0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_QImage, &sipCpp, sipType_QPoint, &a0, sipType_QColor, &a1, &a1State))
        {
            sipCpp->setPixelColor(*a0,*a1);
            sipReleaseType(const_cast< ::QColor *>(a1), sipType_QColor, a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_setPixelColor, doc_QImage_setPixelColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_reinterpretAsFormat, "reinterpretAsFormat(self, QImage.Format) -> bool");

extern "C" {static PyObject *meth_QImage_reinterpretAsFormat(PyObject *, PyObject *);}
static PyObject *meth_QImage_reinterpretAsFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QImage::Format a0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QImage, &sipCpp, sipType_QImage_Format, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->reinterpretAsFormat(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_reinterpretAsFormat, doc_QImage_reinterpretAsFormat);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_sizeInBytes, "sizeInBytes(self) -> int");

extern "C" {static PyObject *meth_QImage_sizeInBytes(PyObject *, PyObject *);}
static PyObject *meth_QImage_sizeInBytes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            Py_ssize_t sipRes;

            sipRes = sipCpp->sizeInBytes();

            return PyLong_FromSsize_t(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_sizeInBytes, doc_QImage_sizeInBytes);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_convertTo, "convertTo(self, QImage.Format, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = Qt.ImageConversionFlag.AutoColor)");

extern "C" {static PyObject *meth_QImage_convertTo(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_convertTo(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QImage::Format a0;
         ::Qt::ImageConversionFlags a1def = Qt::ImageConversionFlag::AutoColor;
         ::Qt::ImageConversionFlags* a1 = &a1def;
        int a1State = 0;
         ::QImage *sipCpp;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE|J1", &sipSelf, sipType_QImage, &sipCpp, sipType_QImage_Format, &a0, sipType_Qt_ImageConversionFlags, &a1, &a1State))
        {
            sipCpp->convertTo(a0,*a1);
            sipReleaseType(a1, sipType_Qt_ImageConversionFlags, a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_convertTo, doc_QImage_convertTo);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_colorSpace, "colorSpace(self) -> QColorSpace");

extern "C" {static PyObject *meth_QImage_colorSpace(PyObject *, PyObject *);}
static PyObject *meth_QImage_colorSpace(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
             ::QColorSpace*sipRes;

            sipRes = new  ::QColorSpace(sipCpp->colorSpace());

            return sipConvertFromNewType(sipRes,sipType_QColorSpace,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_colorSpace, doc_QImage_colorSpace);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_convertedToColorSpace, "convertedToColorSpace(self, QColorSpace) -> QImage");

extern "C" {static PyObject *meth_QImage_convertedToColorSpace(PyObject *, PyObject *);}
static PyObject *meth_QImage_convertedToColorSpace(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QColorSpace* a0;
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImage, &sipCpp, sipType_QColorSpace, &a0))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->convertedToColorSpace(*a0));

            return sipConvertFromNewType(sipRes,sipType_QImage,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_convertedToColorSpace, doc_QImage_convertedToColorSpace);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_convertToColorSpace, "convertToColorSpace(self, QColorSpace)");

extern "C" {static PyObject *meth_QImage_convertToColorSpace(PyObject *, PyObject *);}
static PyObject *meth_QImage_convertToColorSpace(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QColorSpace* a0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImage, &sipCpp, sipType_QColorSpace, &a0))
        {
            sipCpp->convertToColorSpace(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_convertToColorSpace, doc_QImage_convertToColorSpace);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_setColorSpace, "setColorSpace(self, QColorSpace)");

extern "C" {static PyObject *meth_QImage_setColorSpace(PyObject *, PyObject *);}
static PyObject *meth_QImage_setColorSpace(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QColorSpace* a0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImage, &sipCpp, sipType_QColorSpace, &a0))
        {
            sipCpp->setColorSpace(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_setColorSpace, doc_QImage_setColorSpace);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QImage_applyColorTransform, "applyColorTransform(self, QColorTransform)");

extern "C" {static PyObject *meth_QImage_applyColorTransform(PyObject *, PyObject *);}
static PyObject *meth_QImage_applyColorTransform(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QColorTransform* a0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImage, &sipCpp, sipType_QColorTransform, &a0))
        {
            sipCpp->applyColorTransform(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QImage, sipName_applyColorTransform, doc_QImage_applyColorTransform);

    return SIP_NULLPTR;
}


extern "C" {static PyObject *slot_QImage___ne__(PyObject *,PyObject *);}
static PyObject *slot_QImage___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QImage *sipCpp = reinterpret_cast< ::QImage *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QImage));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QImage, &a0))
        {
            bool sipRes;

            sipRes = sipCpp-> ::QImage::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

    return sipPySlotExtend(&sipModuleAPI_QtGui, ne_slot, sipType_QImage, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QImage___eq__(PyObject *,PyObject *);}
static PyObject *slot_QImage___eq__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QImage *sipCpp = reinterpret_cast< ::QImage *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QImage));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QImage* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QImage, &a0))
        {
            bool sipRes;

            sipRes = sipCpp-> ::QImage::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

    return sipPySlotExtend(&sipModuleAPI_QtGui, eq_slot, sipType_QImage, sipSelf, sipArg);
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QImage(void *, const sipTypeDef *);}
static void *cast_QImage(void *sipCppV, const sipTypeDef *targetType)
{
     ::QImage *sipCpp = reinterpret_cast< ::QImage *>(sipCppV);

    if (targetType == sipType_QImage)
        return sipCppV;

    if (targetType == sipType_QPaintDevice)
        return static_cast< ::QPaintDevice *>(sipCpp);

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_QImage(void *, int);}
static void release_QImage(void *sipCppV, int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQImage *>(sipCppV);
    else
        delete reinterpret_cast< ::QImage *>(sipCppV);
}


extern "C" {static void *array_QImage(Py_ssize_t);}
static void *array_QImage(Py_ssize_t sipNrElem)
{
    return new  ::QImage[sipNrElem];
}


extern "C" {static void array_delete_QImage(void *);}
static void array_delete_QImage(void *sipCpp)
{
    delete[] reinterpret_cast< ::QImage *>(sipCpp);
}


extern "C" {static void assign_QImage(void *, Py_ssize_t, void *);}
static void assign_QImage(void *sipDst, Py_ssize_t sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QImage *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::QImage *>(sipSrc);
}


extern "C" {static void *copy_QImage(const void *, Py_ssize_t);}
static void *copy_QImage(const void *sipSrc, Py_ssize_t sipSrcIdx)
{
    return new  ::QImage(reinterpret_cast<const  ::QImage *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QImage(sipSimpleWrapper *);}
static void dealloc_QImage(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQImage *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QImage(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_QImage(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QImage(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQImage *sipCpp = SIP_NULLPTR;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
        {
            sipCpp = new sipQImage();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::QSize* a0;
         ::QImage::Format a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9E", sipType_QSize, &a0, sipType_QImage_Format, &a1))
        {
            sipCpp = new sipQImage(*a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;
         ::QImage::Format a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "iiE", &a0, &a1, sipType_QImage_Format, &a2))
        {
            sipCpp = new sipQImage(a0,a1,a2);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::uchar* a0;
        PyObject *a0Keep;
        int a1;
        int a2;
         ::QImage::Format a3;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "@siiE", &a0Keep, &a0, &a1, &a2, sipType_QImage_Format, &a3))
        {
            sipCpp = new sipQImage(a0,a1,a2,a3);

            sipKeepReference((PyObject *)sipSelf, -1, a0Keep);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        void* a0;
        int a1;
        int a2;
         ::QImage::Format a3;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "viiE", &a0, &a1, &a2, sipType_QImage_Format, &a3))
        {
            sipCpp = new sipQImage(reinterpret_cast< ::uchar *>(a0),a1,a2,a3);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::uchar* a0;
        PyObject *a0Keep;
        int a1;
        int a2;
        int a3;
         ::QImage::Format a4;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "@siiiE", &a0Keep, &a0, &a1, &a2, &a3, sipType_QImage_Format, &a4))
        {
            sipCpp = new sipQImage(a0,a1,a2,a3,a4);

            sipKeepReference((PyObject *)sipSelf, -2, a0Keep);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        void* a0;
        int a1;
        int a2;
        int a3;
         ::QImage::Format a4;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "viiiE", &a0, &a1, &a2, &a3, sipType_QImage_Format, &a4))
        {
            sipCpp = new sipQImage(reinterpret_cast< ::uchar *>(a0),a1,a2,a3,a4);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        PyObject * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "T", &PyList_Type, &a0))
        {
            int sipIsErr = 0;

#line 107 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qimage.sip"
        // The Python interface is a list of strings that make up the image.
        
        const char **str = QtGui_ListToArray(a0);
        
        if (str)
        {
            sipCpp = new sipQImage(str);
            QtGui_DeleteArray(str);
        }
        else
            sipIsErr = 1;
#line 3077 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"

            if (sipIsErr)
            {
                if (sipUnused)
                {
                    Py_XDECREF(*sipUnused);
                }

                sipAddException(sipErrorFail, sipParseErr);
                return SIP_NULLPTR;
            }

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            sipName_format,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|AA", sipType_QString, &a0, &a0State, &a1Keep, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQImage(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);
            Py_XDECREF(a1Keep);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::QImage* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_QImage, &a0))
        {
            sipCpp = new sipQImage(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::QVariant* a0;
        PyObject *a0Wrapper;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "@J1", &a0Wrapper, sipType_QVariant, &a0, &a0State))
        {
            sipErrorState sipError = sipErrorNone;

#line 124 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qimage.sip"
        if (a0->canConvert<QImage>())
            sipCpp = new sipQImage(a0->value<QImage>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 3148 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQImage.cpp"
            sipReleaseType(const_cast< ::QVariant *>(a0), sipType_QVariant, a0State);

            if (sipError == sipErrorNone)
            {
                sipCpp->sipPySelf = sipSelf;

                return sipCpp;
            }

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return SIP_NULLPTR;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QImage[] = {{200, 255, 1}};


/* Define this type's Python slots. */
static sipPySlotDef slots_QImage[] = {
    {(void *)slot_QImage___ne__, ne_slot},
    {(void *)slot_QImage___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QImage[] = {
    {sipName_allGray, meth_QImage_allGray, METH_VARARGS, doc_QImage_allGray},
    {sipName_applyColorTransform, meth_QImage_applyColorTransform, METH_VARARGS, doc_QImage_applyColorTransform},
    {sipName_bitPlaneCount, meth_QImage_bitPlaneCount, METH_VARARGS, doc_QImage_bitPlaneCount},
    {sipName_bits, meth_QImage_bits, METH_VARARGS, doc_QImage_bits},
    {sipName_byteCount, meth_QImage_byteCount, METH_VARARGS, doc_QImage_byteCount},
    {sipName_bytesPerLine, meth_QImage_bytesPerLine, METH_VARARGS, doc_QImage_bytesPerLine},
    {sipName_cacheKey, meth_QImage_cacheKey, METH_VARARGS, doc_QImage_cacheKey},
    {sipName_color, meth_QImage_color, METH_VARARGS, doc_QImage_color},
    {sipName_colorCount, meth_QImage_colorCount, METH_VARARGS, doc_QImage_colorCount},
    {sipName_colorSpace, meth_QImage_colorSpace, METH_VARARGS, doc_QImage_colorSpace},
    {sipName_colorTable, meth_QImage_colorTable, METH_VARARGS, doc_QImage_colorTable},
    {sipName_constBits, meth_QImage_constBits, METH_VARARGS, doc_QImage_constBits},
    {sipName_constScanLine, meth_QImage_constScanLine, METH_VARARGS, doc_QImage_constScanLine},
    {sipName_convertTo, SIP_MLMETH_CAST(meth_QImage_convertTo), METH_VARARGS|METH_KEYWORDS, doc_QImage_convertTo},
    {sipName_convertToColorSpace, meth_QImage_convertToColorSpace, METH_VARARGS, doc_QImage_convertToColorSpace},
    {sipName_convertToFormat, SIP_MLMETH_CAST(meth_QImage_convertToFormat), METH_VARARGS|METH_KEYWORDS, doc_QImage_convertToFormat},
    {sipName_convertedToColorSpace, meth_QImage_convertedToColorSpace, METH_VARARGS, doc_QImage_convertedToColorSpace},
    {sipName_copy, SIP_MLMETH_CAST(meth_QImage_copy), METH_VARARGS|METH_KEYWORDS, doc_QImage_copy},
    {sipName_createAlphaMask, SIP_MLMETH_CAST(meth_QImage_createAlphaMask), METH_VARARGS|METH_KEYWORDS, doc_QImage_createAlphaMask},
    {sipName_createHeuristicMask, SIP_MLMETH_CAST(meth_QImage_createHeuristicMask), METH_VARARGS|METH_KEYWORDS, doc_QImage_createHeuristicMask},
    {sipName_createMaskFromColor, SIP_MLMETH_CAST(meth_QImage_createMaskFromColor), METH_VARARGS|METH_KEYWORDS, doc_QImage_createMaskFromColor},
    {sipName_depth, meth_QImage_depth, METH_VARARGS, doc_QImage_depth},
    {sipName_detach, meth_QImage_detach, METH_VARARGS, doc_QImage_detach},
    {sipName_devType, meth_QImage_devType, METH_VARARGS, doc_QImage_devType},
    {sipName_devicePixelRatio, meth_QImage_devicePixelRatio, METH_VARARGS, doc_QImage_devicePixelRatio},
    {sipName_dotsPerMeterX, meth_QImage_dotsPerMeterX, METH_VARARGS, doc_QImage_dotsPerMeterX},
    {sipName_dotsPerMeterY, meth_QImage_dotsPerMeterY, METH_VARARGS, doc_QImage_dotsPerMeterY},
    {sipName_fill, meth_QImage_fill, METH_VARARGS, doc_QImage_fill},
    {sipName_format, meth_QImage_format, METH_VARARGS, doc_QImage_format},
    {sipName_fromData, SIP_MLMETH_CAST(meth_QImage_fromData), METH_VARARGS|METH_KEYWORDS, doc_QImage_fromData},
    {sipName_hasAlphaChannel, meth_QImage_hasAlphaChannel, METH_VARARGS, doc_QImage_hasAlphaChannel},
    {sipName_height, meth_QImage_height, METH_VARARGS, doc_QImage_height},
    {sipName_invertPixels, SIP_MLMETH_CAST(meth_QImage_invertPixels), METH_VARARGS|METH_KEYWORDS, doc_QImage_invertPixels},
    {sipName_isDetached, meth_QImage_isDetached, METH_VARARGS, doc_QImage_isDetached},
    {sipName_isGrayscale, meth_QImage_isGrayscale, METH_VARARGS, doc_QImage_isGrayscale},
    {sipName_isNull, meth_QImage_isNull, METH_VARARGS, doc_QImage_isNull},
    {sipName_load, SIP_MLMETH_CAST(meth_QImage_load), METH_VARARGS|METH_KEYWORDS, doc_QImage_load},
    {sipName_loadFromData, SIP_MLMETH_CAST(meth_QImage_loadFromData), METH_VARARGS|METH_KEYWORDS, doc_QImage_loadFromData},
    {sipName_metric, meth_QImage_metric, METH_VARARGS, doc_QImage_metric},
    {sipName_mirrored, SIP_MLMETH_CAST(meth_QImage_mirrored), METH_VARARGS|METH_KEYWORDS, doc_QImage_mirrored},
    {sipName_offset, meth_QImage_offset, METH_VARARGS, doc_QImage_offset},
    {sipName_paintEngine, meth_QImage_paintEngine, METH_VARARGS, doc_QImage_paintEngine},
    {sipName_pixel, meth_QImage_pixel, METH_VARARGS, doc_QImage_pixel},
    {sipName_pixelColor, meth_QImage_pixelColor, METH_VARARGS, doc_QImage_pixelColor},
    {sipName_pixelFormat, meth_QImage_pixelFormat, METH_VARARGS, doc_QImage_pixelFormat},
    {sipName_pixelIndex, meth_QImage_pixelIndex, METH_VARARGS, doc_QImage_pixelIndex},
    {sipName_rect, meth_QImage_rect, METH_VARARGS, doc_QImage_rect},
    {sipName_reinterpretAsFormat, meth_QImage_reinterpretAsFormat, METH_VARARGS, doc_QImage_reinterpretAsFormat},
    {sipName_rgbSwapped, meth_QImage_rgbSwapped, METH_VARARGS, doc_QImage_rgbSwapped},
    {sipName_save, SIP_MLMETH_CAST(meth_QImage_save), METH_VARARGS|METH_KEYWORDS, doc_QImage_save},
    {sipName_scaled, SIP_MLMETH_CAST(meth_QImage_scaled), METH_VARARGS|METH_KEYWORDS, doc_QImage_scaled},
    {sipName_scaledToHeight, SIP_MLMETH_CAST(meth_QImage_scaledToHeight), METH_VARARGS|METH_KEYWORDS, doc_QImage_scaledToHeight},
    {sipName_scaledToWidth, SIP_MLMETH_CAST(meth_QImage_scaledToWidth), METH_VARARGS|METH_KEYWORDS, doc_QImage_scaledToWidth},
    {sipName_scanLine, meth_QImage_scanLine, METH_VARARGS, doc_QImage_scanLine},
    {sipName_setAlphaChannel, meth_QImage_setAlphaChannel, METH_VARARGS, doc_QImage_setAlphaChannel},
    {sipName_setColor, meth_QImage_setColor, METH_VARARGS, doc_QImage_setColor},
    {sipName_setColorCount, meth_QImage_setColorCount, METH_VARARGS, doc_QImage_setColorCount},
    {sipName_setColorSpace, meth_QImage_setColorSpace, METH_VARARGS, doc_QImage_setColorSpace},
    {sipName_setColorTable, meth_QImage_setColorTable, METH_VARARGS, doc_QImage_setColorTable},
    {sipName_setDevicePixelRatio, meth_QImage_setDevicePixelRatio, METH_VARARGS, doc_QImage_setDevicePixelRatio},
    {sipName_setDotsPerMeterX, meth_QImage_setDotsPerMeterX, METH_VARARGS, doc_QImage_setDotsPerMeterX},
    {sipName_setDotsPerMeterY, meth_QImage_setDotsPerMeterY, METH_VARARGS, doc_QImage_setDotsPerMeterY},
    {sipName_setOffset, meth_QImage_setOffset, METH_VARARGS, doc_QImage_setOffset},
    {sipName_setPixel, meth_QImage_setPixel, METH_VARARGS, doc_QImage_setPixel},
    {sipName_setPixelColor, meth_QImage_setPixelColor, METH_VARARGS, doc_QImage_setPixelColor},
    {sipName_setText, meth_QImage_setText, METH_VARARGS, doc_QImage_setText},
    {sipName_size, meth_QImage_size, METH_VARARGS, doc_QImage_size},
    {sipName_sizeInBytes, meth_QImage_sizeInBytes, METH_VARARGS, doc_QImage_sizeInBytes},
    {sipName_smoothScaled, meth_QImage_smoothScaled, METH_VARARGS, doc_QImage_smoothScaled},
    {sipName_swap, meth_QImage_swap, METH_VARARGS, doc_QImage_swap},
    {sipName_text, SIP_MLMETH_CAST(meth_QImage_text), METH_VARARGS|METH_KEYWORDS, doc_QImage_text},
    {sipName_textKeys, meth_QImage_textKeys, METH_VARARGS, doc_QImage_textKeys},
    {sipName_toImageFormat, meth_QImage_toImageFormat, METH_VARARGS, doc_QImage_toImageFormat},
    {sipName_toPixelFormat, meth_QImage_toPixelFormat, METH_VARARGS, doc_QImage_toPixelFormat},
    {sipName_transformed, SIP_MLMETH_CAST(meth_QImage_transformed), METH_VARARGS|METH_KEYWORDS, doc_QImage_transformed},
    {sipName_trueMatrix, meth_QImage_trueMatrix, METH_VARARGS, doc_QImage_trueMatrix},
    {sipName_valid, meth_QImage_valid, METH_VARARGS, doc_QImage_valid},
    {sipName_width, meth_QImage_width, METH_VARARGS, doc_QImage_width}
};

static sipEnumMemberDef enummembers_QImage[] = {
    {sipName_Format_A2BGR30_Premultiplied, static_cast<int>( ::QImage::Format_A2BGR30_Premultiplied), 74},
    {sipName_Format_A2RGB30_Premultiplied, static_cast<int>( ::QImage::Format_A2RGB30_Premultiplied), 74},
    {sipName_Format_ARGB32, static_cast<int>( ::QImage::Format_ARGB32), 74},
    {sipName_Format_ARGB32_Premultiplied, static_cast<int>( ::QImage::Format_ARGB32_Premultiplied), 74},
    {sipName_Format_ARGB4444_Premultiplied, static_cast<int>( ::QImage::Format_ARGB4444_Premultiplied), 74},
    {sipName_Format_ARGB6666_Premultiplied, static_cast<int>( ::QImage::Format_ARGB6666_Premultiplied), 74},
    {sipName_Format_ARGB8555_Premultiplied, static_cast<int>( ::QImage::Format_ARGB8555_Premultiplied), 74},
    {sipName_Format_ARGB8565_Premultiplied, static_cast<int>( ::QImage::Format_ARGB8565_Premultiplied), 74},
    {sipName_Format_Alpha8, static_cast<int>( ::QImage::Format_Alpha8), 74},
    {sipName_Format_BGR30, static_cast<int>( ::QImage::Format_BGR30), 74},
    {sipName_Format_BGR888, static_cast<int>( ::QImage::Format_BGR888), 74},
    {sipName_Format_Grayscale16, static_cast<int>( ::QImage::Format_Grayscale16), 74},
    {sipName_Format_Grayscale8, static_cast<int>( ::QImage::Format_Grayscale8), 74},
    {sipName_Format_Indexed8, static_cast<int>( ::QImage::Format_Indexed8), 74},
    {sipName_Format_Invalid, static_cast<int>( ::QImage::Format_Invalid), 74},
    {sipName_Format_Mono, static_cast<int>( ::QImage::Format_Mono), 74},
    {sipName_Format_MonoLSB, static_cast<int>( ::QImage::Format_MonoLSB), 74},
    {sipName_Format_RGB16, static_cast<int>( ::QImage::Format_RGB16), 74},
    {sipName_Format_RGB30, static_cast<int>( ::QImage::Format_RGB30), 74},
    {sipName_Format_RGB32, static_cast<int>( ::QImage::Format_RGB32), 74},
    {sipName_Format_RGB444, static_cast<int>( ::QImage::Format_RGB444), 74},
    {sipName_Format_RGB555, static_cast<int>( ::QImage::Format_RGB555), 74},
    {sipName_Format_RGB666, static_cast<int>( ::QImage::Format_RGB666), 74},
    {sipName_Format_RGB888, static_cast<int>( ::QImage::Format_RGB888), 74},
    {sipName_Format_RGBA64, static_cast<int>( ::QImage::Format_RGBA64), 74},
    {sipName_Format_RGBA64_Premultiplied, static_cast<int>( ::QImage::Format_RGBA64_Premultiplied), 74},
    {sipName_Format_RGBA8888, static_cast<int>( ::QImage::Format_RGBA8888), 74},
    {sipName_Format_RGBA8888_Premultiplied, static_cast<int>( ::QImage::Format_RGBA8888_Premultiplied), 74},
    {sipName_Format_RGBX64, static_cast<int>( ::QImage::Format_RGBX64), 74},
    {sipName_Format_RGBX8888, static_cast<int>( ::QImage::Format_RGBX8888), 74},
    {sipName_InvertRgb, static_cast<int>( ::QImage::InvertRgb), 75},
    {sipName_InvertRgba, static_cast<int>( ::QImage::InvertRgba), 75},
};

PyDoc_STRVAR(doc_QImage, "\1QImage()\n"
"QImage(QSize, QImage.Format)\n"
"QImage(int, int, QImage.Format)\n"
"QImage(bytes, int, int, QImage.Format)\n"
"QImage(PyQt5.sip.voidptr, int, int, QImage.Format)\n"
"QImage(bytes, int, int, int, QImage.Format)\n"
"QImage(PyQt5.sip.voidptr, int, int, int, QImage.Format)\n"
"QImage(List[str])\n"
"QImage(str, format: str = None)\n"
"QImage(QImage)\n"
"QImage(Any)");


static pyqt5ClassPluginDef plugin_QImage = {
    SIP_NULLPTR,
    0,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtGui_QImage = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QImage,
        SIP_NULLPTR,
        &plugin_QImage
    },
    {
        sipNameNr_QImage,
        {0, 0, 1},
        78, methods_QImage,
        32, enummembers_QImage,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QImage,
    -1,
    -1,
    supers_QImage,
    slots_QImage,
    init_type_QImage,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QImage,
    assign_QImage,
    array_QImage,
    copy_QImage,
    release_QImage,
    cast_QImage,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QImage,
    sizeof ( ::QImage),
};
