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/tqimageio.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/html/tqimageio.html') diff --git a/doc/html/tqimageio.html b/doc/html/tqimageio.html index 8661edbdb..42d7226e9 100644 --- a/doc/html/tqimageio.html +++ b/doc/html/tqimageio.html @@ -240,8 +240,8 @@ compression ratio.

bool TQImageIO::read ()

-Reads an image into memory and returns TRUE if the image was -successfully read; otherwise returns FALSE. +Reads an image into memory and returns true if the image was +successfully read; otherwise returns false.

Before reading an image you must set an IO device or a file name. If both an IO device and a file name have been set, the IO device will be used. @@ -338,8 +338,8 @@ error, whereas 0 means that the IO operation was successful.

bool TQImageIO::write ()

-Writes an image to an IO device and returns TRUE if the image was -successfully written; otherwise returns FALSE. +Writes an image to an IO device and returns true if the image was +successfully written; otherwise returns false.

Before writing an image you must set an IO device or a file name. If both an IO device and a file name have been set, the IO device will be used. @@ -353,7 +353,7 @@ will be used. iio.setFileName( "vegeburger.bmp" ); iio.setFormat( "BMP" ); if ( iio.write() ) - // returned TRUE if written successfully + // returned true if written successfully

See also setIODevice(), setFileName(), setFormat(), read(), and TQPixmap::save(). -- cgit v1.2.3