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/tqimage.html | 58 +++++++++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'doc/html/tqimage.html') diff --git a/doc/html/tqimage.html b/doc/html/tqimage.html index f435c83ec..cb8333ae7 100644 --- a/doc/html/tqimage.html +++ b/doc/html/tqimage.html @@ -81,7 +81,7 @@ representation with direct access to the pixel data.
  • bool create ( const TQSize &, int depth, int numColors = 0, Endian bitOrder = IgnoreEndian )
  • void reset ()
  • void fill ( uint pixel )
  • -
  • void invertPixels ( bool invertAlpha = TRUE )
  • +
  • void invertPixels ( bool invertAlpha = true )
  • TQImage convertDepth ( int depth ) const
  • TQImage convertDepthWithPalette ( int d, TQRgb * palette, int palette_count, int conversion_flags = 0 ) const
  • TQImage convertDepth ( int depth, int conversion_flags ) const
  • @@ -95,7 +95,7 @@ representation with direct access to the pixel data.
  • TQImage scaleHeight ( int h ) const
  • TQImage xForm ( const TQWMatrix & matrix ) const
  • TQImage createAlphaMask ( int conversion_flags = 0 ) const
  • -
  • TQImage createHeuristicMask ( bool clipTight = TRUE ) const
  • +
  • TQImage createHeuristicMask ( bool clipTight = true ) const
  • TQImage mirror () const
  • TQImage mirror ( bool horizontal, bool vertical ) const
  • TQImage swapRGB () const
  • @@ -330,9 +330,9 @@ Destroys the image and cleans up.

    bool TQImage::allGray () const

    -Returns TRUE if all the colors in the image are shades of gray +Returns true if all the colors in the image are shades of gray (i.e. their red, green and blue components are equal); otherwise -returns FALSE. +returns false.

    This function is slow for large 32-bit images.

    See also isGrayscale(). @@ -444,8 +444,8 @@ areas beyond this image pixels are filled with pixel 0.

    bool TQImage::create ( int width, int height, int depth, int numColors = 0, Endian bitOrder = IgnoreEndian )

    Sets the image width, height, depth, its number of colors -(in numColors), and bit order. Returns TRUE if successful, or -FALSE if the parameters are incorrect or if memory cannot be +(in numColors), and bit order. Returns true if successful, or +false if the parameters are incorrect or if memory cannot be allocated.

    The width and height is limited to 32767. depth must be 1, 8, or 32. If depth is 1, bitOrder must be set to @@ -471,7 +471,7 @@ image. Returns a null image if a convert to big-endianness using convertBitOrder().

    See also createHeuristicMask(), hasAlphaBuffer(), and setAlphaBuffer(). -

    TQImage TQImage::createHeuristicMask ( bool clipTight = TRUE ) const +

    TQImage TQImage::createHeuristicMask ( bool clipTight = true ) const

    Creates and returns a 1-bpp heuristic mask for this image. It works by selecting a color from one of the corners, then chipping @@ -481,7 +481,7 @@ case of a draw (this generally means that this function is not applicable to the image), the result is arbitrary.

    The returned image has little-endian bit order, which you can convert to big-endianness using convertBitOrder(). -

    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.

    This function disregards the alpha buffer.

    See also createAlphaMask(). @@ -548,8 +548,8 @@ to an image.

    bool TQImage::hasAlphaBuffer () const

    -

    Returns TRUE if alpha buffer mode is enabled; otherwise returns -FALSE. +

    Returns true if alpha buffer mode is enabled; otherwise returns +false.

    See also setAlphaBuffer().

    int TQImage::height () const @@ -592,10 +592,10 @@ Returns a list of image formats that are supported for image input.

    See also outputFormats(), inputFormatList(), and TQImageIO. -

    void TQImage::invertPixels ( bool invertAlpha = TRUE ) +

    void TQImage::invertPixels ( bool invertAlpha = true )

    Inverts all pixel values in the image. -

    If the depth is 32: if invertAlpha is TRUE, the alpha bits are +

    If the depth is 32: if invertAlpha is true, the alpha bits are also inverted, otherwise they are left unchanged.

    If the depth is not 32, the argument invertAlpha has no meaning. @@ -607,15 +607,15 @@ using color index i with a pixel using color index 255 minus i For 32-bit images, this function is equivalent to allGray(). -

    For 8-bpp images, this function returns TRUE if color(i) is +

    For 8-bpp images, this function returns true if color(i) is TQRgb(i,i,i) for all indices of the color table; otherwise returns -FALSE. +false.

    See also allGray() and depth().

    bool TQImage::isNull () const

    -

    Returns TRUE if it is a null image; otherwise returns FALSE. +

    Returns true if it is a null image; otherwise returns false.

    A null image has all parameters set to zero and no allocated data.

    Example: showimg/showimg.cpp. @@ -628,8 +628,8 @@ FALSE.

    bool TQImage::load ( const TQString & fileName, const char * format = 0 )

    -Loads an image from the file fileName. Returns TRUE if the -image was successfully loaded; otherwise returns FALSE. +Loads an image from the file fileName. Returns true if the +image was successfully loaded; otherwise returns false.

    If format is specified, the loader attempts to read the image using the specified format. If format is not specified (which is the default), the loader reads a few bytes from the header to @@ -640,8 +640,8 @@ explains how to add extra formats.

    bool TQImage::loadFromData ( const uchar * buf, uint len, const char * format = 0 )

    -Loads an image from the first len bytes of binary data in buf. Returns TRUE if the image was successfully loaded; otherwise -returns FALSE. +Loads an image from the first len bytes of binary data in buf. Returns true if the image was successfully loaded; otherwise +returns false.

    If format is specified, the loader attempts to read the image using the specified format. If format is not specified (which is the default), the loader reads a few bytes from the header to @@ -664,7 +664,7 @@ image. The original TQImage is not changed. This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Returns a mirror of the image, mirrored in the horizontal and/or -the vertical direction depending on whether horizontal and vertical are set to TRUE or FALSE. The original image is not +the vertical direction depending on whether horizontal and vertical are set to true or false. The original image is not changed.

    See also smoothScale(). @@ -692,8 +692,8 @@ offset by when positioning relative to other images.

    bool TQImage::operator!= ( const TQImage & i ) const

    -Returns TRUE if this image and image i have different contents; -otherwise returns FALSE. The comparison can be slow, unless there +Returns true if this image and image i have different contents; +otherwise returns false. The comparison can be slow, unless there is some obvious difference, such as different widths, in which case the function will return quickly.

    See also operator=(). @@ -715,8 +715,8 @@ dereference the shared data.

    bool TQImage::operator== ( const TQImage & i ) const

    -Returns TRUE if this image and image i have the same contents; -otherwise returns FALSE. The comparison can be slow, unless there +Returns true if this image and image i have the same contents; +otherwise returns false. The comparison can be slow, unless there is some obvious difference, such as different widths, in which case the function will return quickly.

    See also operator=(). @@ -779,8 +779,8 @@ format format and a quality factor of quality. quality Returns TRUE if the image was successfully saved; otherwise -returns FALSE. +

    Returns true if the image was successfully saved; otherwise +returns false.

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

    bool TQImage::save ( TQIODevice * device, const char * format, int quality = -1 ) const @@ -858,7 +858,7 @@ the underlying platform. Hint: use tqRed(),

    Example: desktop/desktop.cpp.

    void TQImage::setAlphaBuffer ( bool enable )

    -Enables alpha buffer mode if enable is TRUE, otherwise disables +Enables alpha buffer mode if enable is true, otherwise disables it. The default setting is disabled.

    An 8-bpp image has 8-bit pixels. A pixel is an index into the color table, which contains 32-bit color @@ -1033,8 +1033,8 @@ over a copy, e.g.

    bool TQImage::valid ( int x, int y ) const

    -Returns TRUE if ( x, y ) is a valid coordinate in the image; -otherwise returns FALSE. +Returns true if ( x, y ) is a valid coordinate in the image; +otherwise returns false.

    See also width(), height(), and pixelIndex().

    Examples: canvas/canvas.cpp and qmag/qmag.cpp. -- cgit v1.2.3