diff options
Diffstat (limited to 'doc/man/man3/tqpixmap.3qt')
| -rw-r--r-- | doc/man/man3/tqpixmap.3qt | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/doc/man/man3/tqpixmap.3qt b/doc/man/man3/tqpixmap.3qt index 9fbe52334..99eeff253 100644 --- a/doc/man/man3/tqpixmap.3qt +++ b/doc/man/man3/tqpixmap.3qt @@ -108,7 +108,7 @@ Inherited by QBitmap and QCanvasPixmap. .BI "bool \fBhasAlphaChannel\fR () const" .br .ti -1c -.BI "QBitmap \fBcreateHeuristicMask\fR ( bool clipTight = TRUE ) const" +.BI "QBitmap \fBcreateHeuristicMask\fR ( bool clipTight = true ) const" .br .ti -1c .BI "QPixmap \fBxForm\fR ( const QWMatrix & matrix ) const" @@ -349,15 +349,15 @@ 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 QBitmap class. .SH "QPixmap::~QPixmap ()" Destroys the pixmap. .SH "bool QPixmap::convertFromImage ( const TQImage & img, int conversion_flags )" -Converts image \fIimg\fR and sets this pixmap. Returns TRUE if successful; otherwise returns FALSE. +Converts image \fIimg\fR and sets this pixmap. Returns true if successful; otherwise returns false. .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 QBitmap, isQBitmap() 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 @@ -368,7 +368,7 @@ Examples: .SH "bool QPixmap::convertFromImage ( const TQImage & image, ColorMode mode = Auto )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP -Converts \fIimage\fR and sets this pixmap using color mode \fImode\fR. Returns TRUE if successful; otherwise returns FALSE. +Converts \fIimage\fR and sets this pixmap using color mode \fImode\fR. Returns true if successful; otherwise returns false. .PP See also QPixmap::ColorMode. .SH "TQImage QPixmap::convertToImage () const" @@ -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 "QBitmap 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: @@ -394,7 +394,7 @@ The mask may not be perfect but it should be reasonable, so you can do things su .PP This function is slow because it involves transformation to a TQImage, non-trivial computations and a transformation back to a QBitmap. .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. +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 See also TQImage::createHeuristicMask(). .SH "int QPixmap::defaultDepth ()\fC [static]\fR" @@ -514,13 +514,13 @@ See also grabWidget(). .PP Example: qmag/qmag.cpp. .SH "bool QPixmap::hasAlpha () const" -Returns TRUE this pixmap has an alpha channel or a mask. +Returns true this pixmap has an alpha channel or a mask. .PP See also hasAlphaChannel() and mask(). .SH "bool QPixmap::hasAlphaChannel () const" -Returns TRUE if the pixmap has an alpha channel; otherwise it returns FALSE. +Returns true if the pixmap has an alpha channel; otherwise it returns false. .PP -NOTE: If the pixmap has a mask but not alpha channel, this function returns FALSE. +NOTE: If the pixmap has a mask but not alpha channel, this function returns false. .PP See also hasAlpha() and mask(). .SH "int QPixmap::height () const" @@ -537,7 +537,7 @@ The QImageIO documentation lists the supported image formats. .PP See also load() and save(). .SH "bool QPixmap::isNull () const" -Returns TRUE if this is a null pixmap; otherwise returns FALSE. +Returns true if this is a null pixmap; otherwise returns false. .PP A null pixmap has zero width, zero height and no contents. You cannot draw in a null pixmap or bitBlt() anything to it. .PP @@ -548,9 +548,9 @@ See also resize(). 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. +Returns true if this is a QBitmap; 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. +Loads a pixmap from the file \fIfileName\fR at runtime. Returns true if successful; otherwise returns false. .PP 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 @@ -573,7 +573,7 @@ The \fImode\fR is used to specify the color mode of the pixmap. .PP See also QPixmap::ColorMode. .SH "bool QPixmap::loadFromData ( const uchar * buf, uint len, const char * format, int conversion_flags )" -Loads a pixmap from the binary data in \fIbuf\fR (\fIlen\fR bytes). Returns TRUE if successful; otherwise returns FALSE. +Loads a pixmap from the binary data in \fIbuf\fR (\fIlen\fR bytes). Returns true if successful; otherwise returns false. .PP 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 @@ -585,7 +585,7 @@ See also load(), save(), imageFormat(), TQImage::loadFromData(), and QImageIO. .SH "bool QPixmap::loadFromData ( const uchar * buf, uint len, const char * format = 0, ColorMode mode = Auto )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP -Loads a pixmap from the binary data in \fIbuf\fR (\fIlen\fR bytes) using color mode \fImode\fR. Returns TRUE if successful; otherwise returns FALSE. +Loads a pixmap from the binary data in \fIbuf\fR (\fIlen\fR bytes) using color mode \fImode\fR. Returns true if successful; otherwise returns false. .PP 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 @@ -636,7 +636,7 @@ This is an overloaded member function, provided for convenience. It behaves esse .PP Resizes the pixmap to size \fIsize\fR. .SH "bool QPixmap::save ( const TQString & fileName, const char * format, int quality = -1 ) const" -Saves the pixmap to the file \fIfileName\fR using the image file format \fIformat\fR and a quality factor \fIquality\fR. \fIquality\fR must be in the range [0,100] or -1. Specify 0 to obtain small compressed files, 100 for large uncompressed files, and -1 to use the default settings. Returns TRUE if successful; otherwise returns FALSE. +Saves the pixmap to the file \fIfileName\fR using the image file format \fIformat\fR and a quality factor \fIquality\fR. \fIquality\fR must be in the range [0,100] or -1. Specify 0 to obtain small compressed files, 100 for large uncompressed files, and -1 to use the default settings. Returns true if successful; otherwise returns false. .PP See also load(), loadFromData(), imageFormat(), TQImage::save(), and QImageIO. .PP @@ -660,7 +660,7 @@ This function writes a QPixmap to the TQIODevice, \fIdevice\fR. This can be used .br .fi .SH "bool QPixmap::selfMask () const" -Returns TRUE if the pixmap's mask is identical to the pixmap itself; otherwise returns FALSE. +Returns true if the pixmap's mask is identical to the pixmap itself; otherwise returns false. .PP See also mask(). .SH "int QPixmap::serialNumber () const" |
