From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/tqpixmap.html | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'doc/html/tqpixmap.html') diff --git a/doc/html/tqpixmap.html b/doc/html/tqpixmap.html index a736ae582..ee6093303 100644 --- a/doc/html/tqpixmap.html +++ b/doc/html/tqpixmap.html @@ -68,7 +68,7 @@ body { background: #ffffff; color: black; }
  • bool selfMask () const
  • bool hasAlpha () const
  • bool hasAlphaChannel () const
  • -
  • TQBitmap createHeuristicMask ( bool clipTight = TRUE ) const
  • +
  • TQBitmap createHeuristicMask ( bool clipTight = true ) const
  • TQPixmap xForm ( const TQWMatrix & matrix ) const
  • TQImage convertToImage () const
  • bool convertFromImage ( const TQImage & image, ColorMode mode = Auto )
  • @@ -299,7 +299,7 @@ Constructs a pixmap that is a copy of pixmap. Constructs a monochrome pixmap, with width w and height h, that is initialized with the data in bits. The isXbitmap -indicates whether the data is an X bitmap and defaults to FALSE. +indicates whether the data is an X bitmap and defaults to false. This constructor is protected and used by the TQBitmap class.

    TQPixmap::~TQPixmap () @@ -308,13 +308,13 @@ Destroys the pixmap.

    bool TQPixmap::convertFromImage ( const TQImage & img, int conversion_flags )

    -Converts image img and sets this pixmap. Returns TRUE if -successful; otherwise returns FALSE. +Converts image img and sets this pixmap. Returns true if +successful; otherwise returns false.

    The conversion_flags argument is a bitwise-OR of the TQt::ImageConversionFlags. Passing 0 for conversion_flags sets all the default options.

    Note that even though a TQPixmap with depth 1 behaves much like a -TQBitmap, isTQBitmap() returns FALSE. +TQBitmap, isTQBitmap() returns false.

    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 @@ -326,7 +326,7 @@ produce pixel index 1. This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Converts image and sets this pixmap using color mode mode. -Returns TRUE if successful; otherwise returns FALSE. +Returns true if successful; otherwise returns false.

    See also TQPixmap::ColorMode.

    TQImage TQPixmap::convertToImage () const @@ -341,7 +341,7 @@ ignored.

    See also convertFromImage().

    Example: qmag/qmag.cpp. -

    TQBitmap TQPixmap::createHeuristicMask ( bool clipTight = TRUE ) const +

    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 @@ -355,7 +355,7 @@ can do things such as the following:

    This function is slow because it involves transformation to a TQImage, non-trivial computations and a transformation back to a TQBitmap. -

    If clipTight is TRUE the mask is just large enough to cover the +

    If clipTight is true the mask is just large enough to cover the pixels; otherwise, the mask is larger than the data pixels.

    See also TQImage::createHeuristicMask(). @@ -502,15 +502,15 @@ uninitialized.

    Example: qmag/qmag.cpp.

    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.

    See also hasAlphaChannel() and mask().

    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.

    NOTE: If the pixmap has a mask but not alpha channel, this -function returns FALSE. +function returns false.

    See also hasAlpha() and mask().

    int TQPixmap::height () const @@ -530,7 +530,7 @@ be recognized.

    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.

    A null pixmap has zero width, zero height and no contents. You cannot draw in a null pixmap or bitBlt() anything to it.

    Resizing an existing pixmap to (0, 0) makes a pixmap into a null @@ -541,12 +541,12 @@ pixmap.

    bool TQPixmap::isTQBitmap () const

    -

    Returns TRUE if this is a TQBitmap; otherwise returns FALSE. +

    Returns true if this is a TQBitmap; otherwise returns false.

    bool TQPixmap::load ( const TQString & fileName, const char * format, int conversion_flags )

    -Loads a pixmap from the file fileName at runtime. Returns TRUE -if successful; otherwise returns FALSE. +Loads a pixmap from the file fileName at runtime. Returns true +if successful; otherwise returns false.

    If format is specified, the loader attempts to read the pixmap using the specified format. If format is not specified (default), the loader reads a few bytes from the header to guess @@ -572,7 +572,7 @@ the file's format.

    bool TQPixmap::loadFromData ( const uchar * buf, uint len, const char * format, int conversion_flags )

    Loads a pixmap from the binary data in buf (len bytes). -Returns TRUE if successful; otherwise returns FALSE. +Returns true if successful; otherwise returns false.

    If format is specified, the loader attempts to read the pixmap using the specified format. If format is not specified (default), the loader reads a few bytes from the header to guess @@ -587,8 +587,8 @@ explains how to add extra formats. This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Loads a pixmap from the binary data in buf (len bytes) using -color mode mode. Returns TRUE if successful; otherwise returns -FALSE. +color mode mode. Returns true if successful; otherwise returns +false.

    If format is specified, the loader attempts to read the pixmap using the specified format. If format is not specified (default), the loader reads a few bytes from the header to guess @@ -663,8 +663,8 @@ Saves the pixmap to the file fileName using the image file format format and a quality factor quality. quality 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. +the default settings. Returns true if successful; otherwise +returns false.

    See also load(), loadFromData(), imageFormat(), TQImage::save(), and TQImageIO.

    Example: qmag/qmag.cpp. @@ -686,8 +686,8 @@ TQByteArray:

    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.

    See also mask().

    int TQPixmap::serialNumber () const -- cgit v1.2.3