Qt:Документация 4.3.2/qbitmap-qt3

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] Qt 3 Support Members for QBitmap

The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. 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 )
  • 11 открытых функций унаследованных от QPixmap
  • 8 открытых функций унаследованных от QPaintDevice

[править] Описание функций-членов

[править]
QBitmap::QBitmap ( int width, int height, bool clear )

Constructs a bitmap with the given width and height. If 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 )

Constructs a bitmap with the given size. If 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 )

Constructs a bitmap with the given width and height, and sets the contents to the 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 )

Constructs a bitmap that is a copy of the given image.

Use the static fromImage() function instead.

[править]
QBitmap::QBitmap ( const QSize & size, const uchar * bits, bool isXbitmap = false )

Constructs a bitmap with the given size, and sets the contents to the 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

Returns a copy of this bitmap, transformed according to the given matrix.

Use transformed() instead.

[править]
QBitmap & QBitmap::operator= ( const QImage & image )

This is an overloaded member function, provided for convenience.

Converts the given image to a bitmap, and assigns the result to this bitmap. Returns a reference to the bitmap.

Use the static fromImage() function instead.


Copyright © 2007 Trolltech Trademarks
Qt 4.3.2