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.

使用靜態 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 .

使用靜態 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.

使用靜態 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.

使用靜態 fromImage () 函數代替。