summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqpixmap.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqpixmap.3qt')
-rw-r--r--doc/man/man3/tqpixmap.3qt46
1 files changed, 23 insertions, 23 deletions
diff --git a/doc/man/man3/tqpixmap.3qt b/doc/man/man3/tqpixmap.3qt
index ce2098ac..37c9aaa2 100644
--- a/doc/man/man3/tqpixmap.3qt
+++ b/doc/man/man3/tqpixmap.3qt
@@ -13,7 +13,7 @@ QPixmap \- Off-screen, pixel-based paint device
.PP
Inherits QPaintDevice and Qt.
.PP
-Inherited by QBitmap and TQCanvasPixmap.
+Inherited by TQBitmap and TQCanvasPixmap.
.PP
.SS "Public Members"
.in +1c
@@ -45,7 +45,7 @@ Inherited by QBitmap and TQCanvasPixmap.
.BI "\fBQPixmap\fR ( const char * xpm[] )"
.br
.ti -1c
-.BI "\fBQPixmap\fR ( const QByteArray & img_data )"
+.BI "\fBQPixmap\fR ( const TQByteArray & img_data )"
.br
.ti -1c
.BI "\fBQPixmap\fR ( const QPixmap & pixmap )"
@@ -93,10 +93,10 @@ Inherited by QBitmap and TQCanvasPixmap.
.BI "void \fBresize\fR ( const TQSize & size )"
.br
.ti -1c
-.BI "const QBitmap * \fBmask\fR () const"
+.BI "const TQBitmap * \fBmask\fR () const"
.br
.ti -1c
-.BI "void \fBsetMask\fR ( const QBitmap & newmask )"
+.BI "void \fBsetMask\fR ( const TQBitmap & newmask )"
.br
.ti -1c
.BI "bool \fBselfMask\fR () const"
@@ -108,7 +108,7 @@ Inherited by QBitmap and TQCanvasPixmap.
.BI "bool \fBhasAlphaChannel\fR () const"
.br
.ti -1c
-.BI "QBitmap \fBcreateHeuristicMask\fR ( bool clipTight = TRUE ) const"
+.BI "TQBitmap \fBcreateHeuristicMask\fR ( bool clipTight = TRUE ) const"
.br
.ti -1c
.BI "QPixmap \fBxForm\fR ( const QWMatrix & matrix ) const"
@@ -135,7 +135,7 @@ Inherited by QBitmap and TQCanvasPixmap.
.BI "bool \fBloadFromData\fR ( const uchar * buf, uint len, const char * format, int conversion_flags )"
.br
.ti -1c
-.BI "bool \fBloadFromData\fR ( const QByteArray & buf, const char * format = 0, int conversion_flags = 0 )"
+.BI "bool \fBloadFromData\fR ( const TQByteArray & buf, const char * format = 0, int conversion_flags = 0 )"
.br
.ti -1c
.BI "bool \fBsave\fR ( const TQString & fileName, const char * format, int quality = -1 ) const"
@@ -156,7 +156,7 @@ Inherited by QBitmap and TQCanvasPixmap.
.BI "virtual void \fBdetach\fR ()"
.br
.ti -1c
-.BI "bool \fBisQBitmap\fR () const"
+.BI "bool \fBisTQBitmap\fR () const"
.br
.in -1c
.SS "Static Public Members"
@@ -258,7 +258,7 @@ If your application uses dozens or hundreds of pixmaps (for example on tool bar
.PP
In general it is recommended to make as much use of QPixmap's implicit sharing and the QPixmapCache as possible.
.PP
-See also QBitmap, TQImage, TQImageIO, Shared Classes, Graphics Classes, Image Processing Classes, and Implicitly and Explicitly Shared Classes.
+See also TQBitmap, TQImage, TQImageIO, Shared Classes, Graphics Classes, Image Processing Classes, and Implicitly and Explicitly Shared Classes.
.SS "Member Type Documentation"
.SH "QPixmap::ColorMode"
This enum type defines the color modes that exist for converting TQImage objects to QPixmap.
@@ -342,14 +342,14 @@ Note that it's possible to squeeze the XPM variable a little bit by using an unu
The extra \fCconst\fR makes the entire definition read-only, which is slightly more efficient (for example, when the code is in a shared library) and ROMable when the application is to be stored in ROM.
.PP
In order to use that sort of declaration you must cast the variable back to \fCconst char **\fR when you create the QPixmap.
-.SH "QPixmap::QPixmap ( const QByteArray & img_data )"
+.SH "QPixmap::QPixmap ( const TQByteArray & img_data )"
Constructs a pixmaps by loading from \fIimg_data\fR. The data can be in any image format supported by Qt.
.PP
See also loadFromData().
.SH "QPixmap::QPixmap ( const QPixmap & pixmap )"
Constructs a pixmap that is a copy of \fIpixmap\fR.
.SH "QPixmap::QPixmap ( int w, int h, const uchar * bits, bool isXbitmap )\fC [protected]\fR"
-Constructs a monochrome pixmap, with width \fIw\fR and height \fIh\fR, that is initialized with the data in \fIbits\fR. The \fIisXbitmap\fR indicates whether the data is an X bitmap and defaults to FALSE. This constructor is protected and used by the QBitmap class.
+Constructs a monochrome pixmap, with width \fIw\fR and height \fIh\fR, that is initialized with the data in \fIbits\fR. The \fIisXbitmap\fR indicates whether the data is an X bitmap and defaults to FALSE. This constructor is protected and used by the TQBitmap class.
.SH "QPixmap::~QPixmap ()"
Destroys the pixmap.
.SH "bool QPixmap::convertFromImage ( const TQImage & img, int conversion_flags )"
@@ -357,11 +357,11 @@ Converts image \fIimg\fR and sets this pixmap. Returns TRUE if successful; other
.PP
The \fIconversion_flags\fR argument is a bitwise-OR of the TQt::ImageConversionFlags. Passing 0 for \fIconversion_flags\fR sets all the default options.
.PP
-Note that even though a QPixmap with depth 1 behaves much like a QBitmap, isQBitmap() returns FALSE.
+Note that even though a QPixmap with depth 1 behaves much like a TQBitmap, isTQBitmap() returns FALSE.
.PP
If a pixmap with depth 1 is painted with color0 and color1 and converted to an image, the pixels painted with color0 will produce pixel index 0 in the image and those painted with color1 will produce pixel index 1.
.PP
-See also convertToImage(), isQBitmap(), TQImage::convertDepth(), defaultDepth(), and TQImage::hasAlphaBuffer().
+See also convertToImage(), isTQBitmap(), TQImage::convertDepth(), defaultDepth(), and TQImage::hasAlphaBuffer().
.PP
Examples:
.)l canvas/canvas.cpp and themes/wood.cpp.
@@ -381,7 +381,7 @@ Note that for the moment, alpha masks on monochrome images are ignored.
See also convertFromImage().
.PP
Example: qmag/qmag.cpp.
-.SH "QBitmap QPixmap::createHeuristicMask ( bool clipTight = TRUE ) const"
+.SH "TQBitmap QPixmap::createHeuristicMask ( bool clipTight = TRUE ) const"
Creates and returns a heuristic mask for this pixmap. It works by selecting a color from one of the corners and then chipping away pixels of that color, starting at all the edges.
.PP
The mask may not be perfect but it should be reasonable, so you can do things such as the following:
@@ -392,7 +392,7 @@ The mask may not be perfect but it should be reasonable, so you can do things su
.br
.fi
.PP
-This function is slow because it involves transformation to a TQImage, non-trivial computations and a transformation back to a QBitmap.
+This function is slow because it involves transformation to a TQImage, non-trivial computations and a transformation back to a TQBitmap.
.PP
If \fIclipTight\fR is TRUE the mask is just large enough to cover the pixels; otherwise, the mask is larger than the data pixels.
.PP
@@ -547,8 +547,8 @@ See also resize().
.PP
Examples:
.)l movies/main.cpp, qdir/qdir.cpp, qmag/qmag.cpp, and scrollview/scrollview.cpp.
-.SH "bool QPixmap::isQBitmap () const"
-Returns TRUE if this is a QBitmap; otherwise returns FALSE.
+.SH "bool QPixmap::isTQBitmap () const"
+Returns TRUE if this is a TQBitmap; otherwise returns FALSE.
.SH "bool QPixmap::load ( const TQString & fileName, const char * format, int conversion_flags )"
Loads a pixmap from the file \fIfileName\fR at runtime. Returns TRUE if successful; otherwise returns FALSE.
.PP
@@ -590,12 +590,12 @@ Loads a pixmap from the binary data in \fIbuf\fR (\fIlen\fR bytes) using color m
If \fIformat\fR is specified, the loader attempts to read the pixmap using the specified format. If \fIformat\fR is not specified (default), the loader reads a few bytes from the header to guess the file's format.
.PP
See also QPixmap::ColorMode.
-.SH "bool QPixmap::loadFromData ( const QByteArray & buf, const char * format = 0, int conversion_flags = 0 )"
+.SH "bool QPixmap::loadFromData ( const TQByteArray & buf, const char * format = 0, int conversion_flags = 0 )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
-.SH "const QBitmap * QPixmap::mask () const"
+.SH "const TQBitmap * QPixmap::mask () const"
Returns the mask bitmap, or 0 if no mask has been set.
.PP
-See also setMask(), QBitmap, and hasAlpha().
+See also setMask(), TQBitmap, and hasAlpha().
.SH "int QPixmap::metric ( int m ) const\fC [virtual protected]\fR"
Internal implementation of the virtual QPaintDevice::metric() function.
.PP
@@ -644,13 +644,13 @@ Example: qmag/qmag.cpp.
.SH "bool QPixmap::save ( TQIODevice * device, const char * format, int quality = -1 ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-This function writes a QPixmap to the TQIODevice, \fIdevice\fR. This can be used, for example, to save a pixmap directly into a QByteArray:
+This function writes a QPixmap to the TQIODevice, \fIdevice\fR. This can be used, for example, to save a pixmap directly into a TQByteArray:
.PP
.nf
.br
QPixmap pixmap;
.br
- QByteArray ba;
+ TQByteArray ba;
.br
QBuffer buffer( ba );
.br
@@ -677,7 +677,7 @@ All \fInew\fR pixmaps that are created will use this default optimization. You m
The initial default \fIoptimization\fR setting is \fCQPixmap::Normal\fR.
.PP
See also defaultOptimization(), setOptimization(), and optimization().
-.SH "void QPixmap::setMask ( const QBitmap & newmask )"
+.SH "void QPixmap::setMask ( const TQBitmap & newmask )"
Sets a mask bitmap.
.PP
The \fInewmask\fR bitmap defines the clip mask for this pixmap. Every pixel in \fInewmask\fR corresponds to a pixel in this pixmap. Pixel value 1 means opaque and pixel value 0 means transparent. The mask must have the same size as this pixmap.
@@ -697,7 +697,7 @@ Now, alpha and alphacopy are visually different.
.PP
Setting a null mask resets the mask.
.PP
-See also mask(), createHeuristicMask(), and QBitmap.
+See also mask(), createHeuristicMask(), and TQBitmap.
.SH "void QPixmap::setOptimization ( Optimization optimization )"
Sets pixmap drawing optimization for this pixmap.
.PP