Compatibility Members for QBitmap

以下成员源于类 QBitmap are part of the Qt compatibility layer. We advise against using them in new code.

公共函数

QBitmap (int width , int height , bool clear )
QBitmap (const QSize & size , bool clear )
QBitmap (int width , int height , const uchar * bits , bool isXbitmap = false)
QBitmap (const QImage & image )
QBitmap (const QSize & size , const uchar * bits , bool isXbitmap = false)
QBitmap xForm (const QMatrix & matrix ) const
QBitmap & operator= (const QImage & image )

成员函数文档编制

QBitmap:: QBitmap ( int width , int height , bool clear )

构造位图采用给定 width and height 。若 clear is true, the bits are initialized to Qt::color0 .

Use the corresponding QBitmap () constructor instead, and then call the clear () function if the clear parameter is true.

QBitmap:: QBitmap (const QSize & size , bool clear )

构造位图采用给定 size 。若 clear is true, the bits are initialized to Qt::color0 .

Use the corresponding QBitmap () constructor instead, and then call the clear () function if the clear parameter is true.

QBitmap:: QBitmap ( int width , int height , const uchar * bits , bool isXbitmap = false)

构造位图采用给定 width and height ,并将内容设为 bits supplied. The isXbitmap flag should be true if bits was generated by the X11 bitmap program.

Use the static fromData () function instead. If isXbitmap is true, use the default bit order(QImage_FormatMonoLSB) otherwise use QImage::Format_Mono .

QBitmap:: QBitmap (const QImage & image )

构造位图拷贝为给定 image .

Use the static fromImage () 函数代替。

QBitmap:: QBitmap (const QSize & size , const uchar * bits , bool isXbitmap = false)

这是重载函数。

构造位图采用给定 size ,并将内容设为 bits supplied. The isXbitmap flag should be true if bits was generated by the X11 bitmap program.

Use the static fromData () function instead. If isXbitmap is true, use the default bit order(QImage_FormatMonoLSB) otherwise use QImage::Format_Mono .

QBitmap QBitmap:: xForm (const QMatrix & matrix ) const

返回此位图的拷贝,变换根据给定 matrix .

使用 transformed () 代替。

QBitmap & QBitmap:: operator= (const QImage & image )

这是重载函数。

转换给定 image to a bitmap, and assigns the result to this bitmap. Returns a reference to the bitmap.

Use the static fromImage () 函数代替。