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.3qt34
1 files changed, 17 insertions, 17 deletions
diff --git a/doc/man/man3/tqpixmap.3qt b/doc/man/man3/tqpixmap.3qt
index a4dd2dc4d..4c7862c7d 100644
--- a/doc/man/man3/tqpixmap.3qt
+++ b/doc/man/man3/tqpixmap.3qt
@@ -108,7 +108,7 @@ Inherited by TQBitmap and TQCanvasPixmap.
.BI "bool \fBhasAlphaChannel\fR () const"
.br
.ti -1c
-.BI "TQBitmap \fBcreateHeuristicMask\fR ( bool clipTight = TRUE ) const"
+.BI "TQBitmap \fBcreateHeuristicMask\fR ( bool clipTight = true ) const"
.br
.ti -1c
.BI "TQPixmap \fBxForm\fR ( const TQWMatrix & matrix ) const"
@@ -349,15 +349,15 @@ See also loadFromData().
.SH "TQPixmap::TQPixmap ( const TQPixmap & pixmap )"
Constructs a pixmap that is a copy of \fIpixmap\fR.
.SH "TQPixmap::TQPixmap ( 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 TQBitmap 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 "TQPixmap::~TQPixmap ()"
Destroys the pixmap.
.SH "bool TQPixmap::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 TQPixmap with depth 1 behaves much like a TQBitmap, isTQBitmap() returns FALSE.
+Note that even though a TQPixmap 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
@@ -368,7 +368,7 @@ Examples:
.SH "bool TQPixmap::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 TQPixmap::ColorMode.
.SH "TQImage TQPixmap::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 "TQBitmap TQPixmap::createHeuristicMask ( bool clipTight = TRUE ) const"
+.SH "TQBitmap TQPixmap::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 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.
+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 TQPixmap::defaultDepth ()\fC [static]\fR"
@@ -514,13 +514,13 @@ See also grabWidget().
.PP
Example: qmag/qmag.cpp.
.SH "bool TQPixmap::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 TQPixmap::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 TQPixmap::height () const"
@@ -537,7 +537,7 @@ The TQImageIO documentation lists the supported image formats.
.PP
See also load() and save().
.SH "bool TQPixmap::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, tqdir/tqdir.cpp, qmag/qmag.cpp, and scrollview/scrollview.cpp.
.SH "bool TQPixmap::isTQBitmap () const"
-Returns TRUE if this is a TQBitmap; otherwise returns FALSE.
+Returns true if this is a TQBitmap; otherwise returns false.
.SH "bool TQPixmap::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 TQPixmap::ColorMode.
.SH "bool TQPixmap::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 TQImageIO.
.SH "bool TQPixmap::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 TQPixmap::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 TQImageIO.
.PP
@@ -660,7 +660,7 @@ This function writes a TQPixmap to the TQIODevice, \fIdevice\fR. This can be use
.br
.fi
.SH "bool TQPixmap::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 TQPixmap::serialNumber () const"