From b35e0845dc9b3c8b9a5e52a682c769f383933fae Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 23 Sep 2023 12:42:20 +0900 Subject: Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version Signed-off-by: Michele Calgaro --- doc/man/man3/tqimage.3qt | 340 +++++++++++++++++++++++------------------------ 1 file changed, 170 insertions(+), 170 deletions(-) (limited to 'doc/man/man3/tqimage.3qt') diff --git a/doc/man/man3/tqimage.3qt b/doc/man/man3/tqimage.3qt index c4dfa4853..8adf1e627 100644 --- a/doc/man/man3/tqimage.3qt +++ b/doc/man/man3/tqimage.3qt @@ -1,5 +1,5 @@ '\" t -.TH QImage 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQImage 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,7 +7,7 @@ .ad l .nh .SH NAME -QImage \- Hardware-independent pixmap representation with direct access to the pixel data +TQImage \- Hardware-independent pixmap representation with direct access to the pixel data .SH SYNOPSIS \fC#include \fR .PP @@ -26,7 +26,7 @@ QImage \- Hardware-independent pixmap representation with direct access to the p .BI "\fBQImage\fR ( const QSize & size, int depth, int numColors = 0, Endian bitOrder = IgnoreEndian )" .br .ti -1c -.BI "\fBQImage\fR ( const QString & fileName, const char * format = 0 )" +.BI "\fBQImage\fR ( const TQString & fileName, const char * format = 0 )" .br .ti -1c .BI "\fBQImage\fR ( const char * const xpm[] )" @@ -35,40 +35,40 @@ QImage \- Hardware-independent pixmap representation with direct access to the p .BI "\fBQImage\fR ( const QByteArray & array )" .br .ti -1c -.BI "\fBQImage\fR ( uchar * yourdata, int w, int h, int depth, QRgb * colortable, int numColors, Endian bitOrder )" +.BI "\fBQImage\fR ( uchar * yourdata, int w, int h, int depth, TQRgb * colortable, int numColors, Endian bitOrder )" .br .ti -1c -.BI "\fBQImage\fR ( uchar * yourdata, int w, int h, int depth, int bpl, QRgb * colortable, int numColors, Endian bitOrder )" +.BI "\fBQImage\fR ( uchar * yourdata, int w, int h, int depth, int bpl, TQRgb * colortable, int numColors, Endian bitOrder )" .br .ti -1c -.BI "\fBQImage\fR ( const QImage & image )" +.BI "\fBQImage\fR ( const TQImage & image )" .br .ti -1c -.BI "\fB~QImage\fR ()" +.BI "\fB~TQImage\fR ()" .br .ti -1c -.BI "QImage & \fBoperator=\fR ( const QImage & image )" +.BI "TQImage & \fBoperator=\fR ( const TQImage & image )" .br .ti -1c -.BI "QImage & \fBoperator=\fR ( const QPixmap & pixmap )" +.BI "TQImage & \fBoperator=\fR ( const QPixmap & pixmap )" .br .ti -1c -.BI "bool \fBoperator==\fR ( const QImage & i ) const" +.BI "bool \fBoperator==\fR ( const TQImage & i ) const" .br .ti -1c -.BI "bool \fBoperator!=\fR ( const QImage & i ) const" +.BI "bool \fBoperator!=\fR ( const TQImage & i ) const" .br .ti -1c .BI "void \fBdetach\fR ()" .br .ti -1c -.BI "QImage \fBcopy\fR () const" +.BI "TQImage \fBcopy\fR () const" .br .ti -1c -.BI "QImage \fBcopy\fR ( int x, int y, int w, int h, int conversion_flags = 0 ) const" +.BI "TQImage \fBcopy\fR ( int x, int y, int w, int h, int conversion_flags = 0 ) const" .br .ti -1c -.BI "QImage \fBcopy\fR ( const QRect & r ) const" +.BI "TQImage \fBcopy\fR ( const QRect & r ) const" .br .ti -1c .BI "bool \fBisNull\fR () const" @@ -95,10 +95,10 @@ QImage \- Hardware-independent pixmap representation with direct access to the p .BI "Endian \fBbitOrder\fR () const" .br .ti -1c -.BI "QRgb \fBcolor\fR ( int i ) const" +.BI "TQRgb \fBcolor\fR ( int i ) const" .br .ti -1c -.BI "void \fBsetColor\fR ( int i, QRgb c )" +.BI "void \fBsetColor\fR ( int i, TQRgb c )" .br .ti -1c .BI "void \fBsetNumColors\fR ( int numColors )" @@ -125,7 +125,7 @@ QImage \- Hardware-independent pixmap representation with direct access to the p .BI "uchar ** \fBjumpTable\fR () const" .br .ti -1c -.BI "QRgb * \fBcolorTable\fR () const" +.BI "TQRgb * \fBcolorTable\fR () const" .br .ti -1c .BI "int \fBnumBytes\fR () const" @@ -149,58 +149,58 @@ QImage \- Hardware-independent pixmap representation with direct access to the p .BI "void \fBinvertPixels\fR ( bool invertAlpha = TRUE )" .br .ti -1c -.BI "QImage \fBconvertDepth\fR ( int depth ) const" +.BI "TQImage \fBconvertDepth\fR ( int depth ) const" .br .ti -1c -.BI "QImage \fBconvertDepthWithPalette\fR ( int d, QRgb * palette, int palette_count, int conversion_flags = 0 ) const" +.BI "TQImage \fBconvertDepthWithPalette\fR ( int d, TQRgb * palette, int palette_count, int conversion_flags = 0 ) const" .br .ti -1c -.BI "QImage \fBconvertDepth\fR ( int depth, int conversion_flags ) const" +.BI "TQImage \fBconvertDepth\fR ( int depth, int conversion_flags ) const" .br .ti -1c -.BI "QImage \fBconvertBitOrder\fR ( Endian bitOrder ) const" +.BI "TQImage \fBconvertBitOrder\fR ( Endian bitOrder ) const" .br .ti -1c .BI "enum \fBScaleMode\fR { ScaleFree, ScaleMin, ScaleMax }" .br .ti -1c -.BI "QImage \fBsmoothScale\fR ( int w, int h, ScaleMode mode = ScaleFree ) const" +.BI "TQImage \fBsmoothScale\fR ( int w, int h, ScaleMode mode = ScaleFree ) const" .br .ti -1c -.BI "QImage \fBsmoothScale\fR ( const QSize & s, ScaleMode mode = ScaleFree ) const" +.BI "TQImage \fBsmoothScale\fR ( const QSize & s, ScaleMode mode = ScaleFree ) const" .br .ti -1c -.BI "QImage \fBscale\fR ( int w, int h, ScaleMode mode = ScaleFree ) const" +.BI "TQImage \fBscale\fR ( int w, int h, ScaleMode mode = ScaleFree ) const" .br .ti -1c -.BI "QImage \fBscale\fR ( const QSize & s, ScaleMode mode = ScaleFree ) const" +.BI "TQImage \fBscale\fR ( const QSize & s, ScaleMode mode = ScaleFree ) const" .br .ti -1c -.BI "QImage \fBscaleWidth\fR ( int w ) const" +.BI "TQImage \fBscaleWidth\fR ( int w ) const" .br .ti -1c -.BI "QImage \fBscaleHeight\fR ( int h ) const" +.BI "TQImage \fBscaleHeight\fR ( int h ) const" .br .ti -1c -.BI "QImage \fBxForm\fR ( const QWMatrix & matrix ) const" +.BI "TQImage \fBxForm\fR ( const QWMatrix & matrix ) const" .br .ti -1c -.BI "QImage \fBcreateAlphaMask\fR ( int conversion_flags = 0 ) const" +.BI "TQImage \fBcreateAlphaMask\fR ( int conversion_flags = 0 ) const" .br .ti -1c -.BI "QImage \fBcreateHeuristicMask\fR ( bool clipTight = TRUE ) const" +.BI "TQImage \fBcreateHeuristicMask\fR ( bool clipTight = TRUE ) const" .br .ti -1c -.BI "QImage \fBmirror\fR () const" +.BI "TQImage \fBmirror\fR () const" .br .ti -1c -.BI "QImage \fBmirror\fR ( bool horizontal, bool vertical ) const" +.BI "TQImage \fBmirror\fR ( bool horizontal, bool vertical ) const" .br .ti -1c -.BI "QImage \fBswapRGB\fR () const" +.BI "TQImage \fBswapRGB\fR () const" .br .ti -1c -.BI "bool \fBload\fR ( const QString & fileName, const char * format = 0 )" +.BI "bool \fBload\fR ( const TQString & fileName, const char * format = 0 )" .br .ti -1c .BI "bool \fBloadFromData\fR ( const uchar * buf, uint len, const char * format = 0 )" @@ -209,10 +209,10 @@ QImage \- Hardware-independent pixmap representation with direct access to the p .BI "bool \fBloadFromData\fR ( QByteArray buf, const char * format = 0 )" .br .ti -1c -.BI "bool \fBsave\fR ( const QString & fileName, const char * format, int quality = -1 ) const" +.BI "bool \fBsave\fR ( const TQString & fileName, const char * format, int quality = -1 ) const" .br .ti -1c -.BI "bool \fBsave\fR ( QIODevice * device, const char * format, int quality = -1 ) const" +.BI "bool \fBsave\fR ( TQIODevice * device, const char * format, int quality = -1 ) const" .br .ti -1c .BI "bool \fBvalid\fR ( int x, int y ) const" @@ -221,7 +221,7 @@ QImage \- Hardware-independent pixmap representation with direct access to the p .BI "int \fBpixelIndex\fR ( int x, int y ) const" .br .ti -1c -.BI "QRgb \fBpixel\fR ( int x, int y ) const" +.BI "TQRgb \fBpixel\fR ( int x, int y ) const" .br .ti -1c .BI "void \fBsetPixel\fR ( int x, int y, uint index_or_rgb )" @@ -254,19 +254,19 @@ QImage \- Hardware-independent pixmap representation with direct access to the p .BI "QStringList \fBtextKeys\fR () const" .br .ti -1c -.BI "QString \fBtext\fR ( const char * key, const char * lang = 0 ) const" +.BI "TQString \fBtext\fR ( const char * key, const char * lang = 0 ) const" .br .ti -1c -.BI "QString \fBtext\fR ( const QImageTextKeyLang & kl ) const" +.BI "TQString \fBtext\fR ( const QImageTextKeyLang & kl ) const" .br .ti -1c -.BI "void \fBsetText\fR ( const char * key, const char * lang, const QString & s )" +.BI "void \fBsetText\fR ( const char * key, const char * lang, const TQString & s )" .br .in -1c .SS "Static Public Members" .in +1c .ti -1c -.BI "QImage \fBfromMimeSource\fR ( const QString & abs_name )" +.BI "TQImage \fBfromMimeSource\fR ( const TQString & abs_name )" .br .ti -1c .BI "Endian \fBsystemBitOrder\fR ()" @@ -275,7 +275,7 @@ QImage \- Hardware-independent pixmap representation with direct access to the p .BI "Endian \fBsystemByteOrder\fR ()" .br .ti -1c -.BI "const char * \fBimageFormat\fR ( const QString & fileName )" +.BI "const char * \fBimageFormat\fR ( const TQString & fileName )" .br .ti -1c .BI "QStrList \fBinputFormats\fR ()" @@ -293,35 +293,35 @@ QImage \- Hardware-independent pixmap representation with direct access to the p .SH RELATED FUNCTION DOCUMENTATION .in +1c .ti -1c -.BI "QDataStream & \fBoperator<<\fR ( QDataStream & s, const QImage & image )" +.BI "QDataStream & \fBoperator<<\fR ( QDataStream & s, const TQImage & image )" .br .ti -1c -.BI "QDataStream & \fBoperator>>\fR ( QDataStream & s, QImage & image )" +.BI "QDataStream & \fBoperator>>\fR ( QDataStream & s, TQImage & image )" .br .ti -1c -.BI "void \fBbitBlt\fR ( QImage * dst, int dx, int dy, const QImage * src, int sx, int sy, int sw, int sh, int conversion_flags )" +.BI "void \fBbitBlt\fR ( TQImage * dst, int dx, int dy, const TQImage * src, int sx, int sy, int sw, int sh, int conversion_flags )" .br .in -1c .SH DESCRIPTION -The QImage class provides a hardware-independent pixmap representation with direct access to the pixel data. +The TQImage class provides a hardware-independent pixmap representation with direct access to the pixel data. .PP -It is one of the two classes TQt provides for dealing with images, the other being QPixmap. QImage is designed and optimized for I/O and for direct pixel access/manipulation. QPixmap is designed and optimized for drawing. There are (slow) functions to convert between QImage and QPixmap: QPixmap::convertToImage() and QPixmap::convertFromImage(). +It is one of the two classes TQt provides for dealing with images, the other being QPixmap. TQImage is designed and optimized for I/O and for direct pixel access/manipulation. QPixmap is designed and optimized for drawing. There are (slow) functions to convert between TQImage and QPixmap: QPixmap::convertToImage() and QPixmap::convertFromImage(). .PP -An image has the parameters width, height and depth (bits per pixel, bpp), a color table and the actual pixels. QImage supports 1-bpp, 8-bpp and 32-bpp image data. 1-bpp and 8-bpp images use a color lookup table; the pixel value is a color table index. +An image has the parameters width, height and depth (bits per pixel, bpp), a color table and the actual pixels. TQImage supports 1-bpp, 8-bpp and 32-bpp image data. 1-bpp and 8-bpp images use a color lookup table; the pixel value is a color table index. .PP 32-bpp images encode an RGB value in 24 bits and ignore the color table. The most significant byte is used for the alpha buffer. .PP -An entry in the color table is an RGB triplet encoded as a \fCuint\fR. Use the tqRed(), tqGreen() and tqBlue() functions (ntqcolor.h) to access the components, and tqRgb to make an RGB triplet (see the QColor class documentation). +An entry in the color table is an RGB triplet encoded as a \fCuint\fR. Use the tqRed(), tqGreen() and tqBlue() functions (ntqcolor.h) to access the components, and tqRgb to make an RGB triplet (see the TQColor class documentation). .PP 1-bpp (monochrome) images have a color table with a most two colors. There are two different formats: big endian (MSB first) or little endian (LSB first) bit order. To access a single bit you will must do some bit shifts: .PP .nf .br - QImage image; + TQImage image; .br // sets bit at (x,y) to 1 .br - if ( image.bitOrder() == QImage::LittleEndian ) + if ( image.bitOrder() == TQImage::LittleEndian ) .br *(image.scanLine(y) + (x >> 3)) |= 1 << (x & 7); .br @@ -337,7 +337,7 @@ If this looks complicated, it might be a good idea to convert the 1-bpp image to .PP .nf .br - QImage image; + TQImage image; .br // set entry 19 in the color table to yellow .br @@ -353,7 +353,7 @@ If this looks complicated, it might be a good idea to convert the 1-bpp image to .PP .nf .br - QImage image; + TQImage image; .br // sets 32 bit pixel at (x,y) to yellow. .br @@ -365,23 +365,23 @@ If this looks complicated, it might be a good idea to convert the 1-bpp image to .PP On Qt/Embedded, scanlines are aligned to the pixel depth and may be padded to any degree, while on all other platforms, the scanlines are 32-bit aligned for all depths. The constructor taking a \fCuchar*\fR argument always expects 32-bit aligned data. On Qt/Embedded, an additional constructor allows the number of bytes-per-line to be specified. .PP -QImage supports a variety of methods for getting information about the image, for example, colorTable(), allGray(), isGrayscale(), bitOrder(), bytesPerLine(), depth(), dotsPerMeterX() and dotsPerMeterY(), hasAlphaBuffer(), numBytes(), numColors(), and width() and height(). +TQImage supports a variety of methods for getting information about the image, for example, colorTable(), allGray(), isGrayscale(), bitOrder(), bytesPerLine(), depth(), dotsPerMeterX() and dotsPerMeterY(), hasAlphaBuffer(), numBytes(), numColors(), and width() and height(). .PP Pixel colors are retrieved with pixel() and set with setPixel(). .PP -QImage also supports a number of functions for creating a new image that is a transformed version of the original. For example, copy(), convertBitOrder(), convertDepth(), createAlphaMask(), createHeuristicMask(), mirror(), scale(), smoothScale(), swapRGB() and xForm(). There are also functions for changing attributes of an image in-place, for example, setAlphaBuffer(), setColor(), setDotsPerMeterX() and setDotsPerMeterY() and setNumColors(). +TQImage also supports a number of functions for creating a new image that is a transformed version of the original. For example, copy(), convertBitOrder(), convertDepth(), createAlphaMask(), createHeuristicMask(), mirror(), scale(), smoothScale(), swapRGB() and xForm(). There are also functions for changing attributes of an image in-place, for example, setAlphaBuffer(), setColor(), setDotsPerMeterX() and setDotsPerMeterY() and setNumColors(). .PP Images can be loaded and saved in the supported formats. Images are saved to a file with save(). Images are loaded from a file with load() (or in the constructor) or from an array of data with loadFromData(). The lists of supported formats are available from inputFormatList() and outputFormatList(). .PP Strings of text may be added to images using setText(). .PP -The QImage class uses explicit sharing, similar to that used by QMemArray. +The TQImage class uses explicit sharing, similar to that used by QMemArray. .PP New image formats can be added as plugins. .PP See also QImageIO, QPixmap, Shared Classes, Graphics Classes, Image Processing Classes, and Implicitly and Explicitly Shared Classes. .SS "Member Type Documentation" -.SH "QImage::Endian" +.SH "TQImage::Endian" This enum type is used to describe the endianness of the CPU and graphics hardware. .TP \fCQImage::IgnoreEndian\fR - Endianness does not matter. Useful for some operations that are independent of endianness. @@ -389,7 +389,7 @@ This enum type is used to describe the endianness of the CPU and graphics hardwa \fCQImage::BigEndian\fR - Network byte order, as on SPARC and Motorola CPUs. .TP \fCQImage::LittleEndian\fR - PC/Alpha byte order. -.SH "QImage::ScaleMode" +.SH "TQImage::ScaleMode" The functions scale() and smoothScale() use different modes for scaling the image. The purpose of these modes is to retain the ratio of the image if this is required. .PP
@@ -404,23 +404,23 @@ The functions scale() and smoothScale() use different modes for scaling the imag .TP \fCQImage::ScaleMax\fR - The ratio of the image is preserved and the resulting image fills the whole specified rectangle (it is as small as possible within these constraints) - the image might be larger than the requested size. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QImage::QImage ()" +.SH "TQImage::TQImage ()" Constructs a null image. .PP See also isNull(). -.SH "QImage::QImage ( int w, int h, int depth, int numColors = 0, Endian bitOrder = IgnoreEndian )" +.SH "TQImage::TQImage ( int w, int h, int depth, int numColors = 0, Endian bitOrder = IgnoreEndian )" Constructs an image with \fIw\fR width, \fIh\fR height, \fIdepth\fR bits per pixel, \fInumColors\fR colors and bit order \fIbitOrder\fR. .PP Using this constructor is the same as first constructing a null image and then calling the create() function. .PP See also create(). -.SH "QImage::QImage ( const QSize & size, int depth, int numColors = 0, Endian bitOrder = IgnoreEndian )" +.SH "TQImage::TQImage ( const QSize & size, int depth, int numColors = 0, Endian bitOrder = IgnoreEndian )" Constructs an image with size \fIsize\fR pixels, depth \fIdepth\fR bits, \fInumColors\fR and \fIbitOrder\fR endianness. .PP Using this constructor is the same as first constructing a null image and then calling the create() function. .PP See also create(). -.SH "QImage::QImage ( const QString & fileName, const char * format = 0 )" +.SH "TQImage::TQImage ( const TQString & fileName, const char * format = 0 )" Constructs an image and tries to load the image from the file \fIfileName\fR. .PP If \fIformat\fR is specified, the loader attempts to read the image using the specified format. If \fIformat\fR is not specified (which is the default), the loader reads a few bytes from the header to guess the file format. @@ -430,7 +430,7 @@ If the loading of the image failed, this object is a null image. The QImageIO documentation lists the supported image formats and explains how to add extra formats. .PP See also load(), isNull(), and QImageIO. -.SH "QImage::QImage ( const char * const xpm[] )" +.SH "TQImage::TQImage ( const char * const xpm[] )" Constructs an image from \fIxpm\fR, which must be a valid XPM image. .PP Errors are silently ignored. @@ -450,75 +450,75 @@ Note that it's possible to squeeze the XPM variable a little bit by using an unu .fi .PP The extra \fCconst\fR makes the entire definition read-only, which is slightly more efficient (e.g. when the code is in a shared library) and ROMable when the application is to be stored in ROM. -.SH "QImage::QImage ( const QByteArray & array )" +.SH "TQImage::TQImage ( const QByteArray & array )" Constructs an image from the binary data \fIarray\fR. It tries to guess the file format. .PP If the loading of the image failed, this object is a null image. .PP See also loadFromData(), isNull(), and imageFormat(). -.SH "QImage::QImage ( uchar * yourdata, int w, int h, int depth, QRgb * colortable, int numColors, Endian bitOrder )" -Constructs an image \fIw\fR pixels wide, \fIh\fR pixels high with a color depth of \fIdepth\fR, that uses an existing memory buffer, \fIyourdata\fR. The buffer must remain valid throughout the life of the QImage. The image does not delete the buffer at destruction. +.SH "TQImage::TQImage ( uchar * yourdata, int w, int h, int depth, TQRgb * colortable, int numColors, Endian bitOrder )" +Constructs an image \fIw\fR pixels wide, \fIh\fR pixels high with a color depth of \fIdepth\fR, that uses an existing memory buffer, \fIyourdata\fR. The buffer must remain valid throughout the life of the TQImage. The image does not delete the buffer at destruction. .PP If \fIcolortable\fR is 0, a color table sufficient for \fInumColors\fR will be allocated (and destructed later). .PP Note that \fIyourdata\fR must be 32-bit aligned. .PP The endianness is given in \fIbitOrder\fR. -.SH "QImage::QImage ( uchar * yourdata, int w, int h, int depth, int bpl, QRgb * colortable, int numColors, Endian bitOrder )" -Constructs an image that uses an existing memory buffer. The buffer must remain valid for the life of the QImage. The image does not delete the buffer at destruction. The buffer is passed as \fIyourdata\fR. The image's width is \fIw\fR and its height is \fIh\fR. The color depth is \fIdepth\fR. \fIbpl\fR specifies the number of bytes per line. +.SH "TQImage::TQImage ( uchar * yourdata, int w, int h, int depth, int bpl, TQRgb * colortable, int numColors, Endian bitOrder )" +Constructs an image that uses an existing memory buffer. The buffer must remain valid for the life of the TQImage. The image does not delete the buffer at destruction. The buffer is passed as \fIyourdata\fR. The image's width is \fIw\fR and its height is \fIh\fR. The color depth is \fIdepth\fR. \fIbpl\fR specifies the number of bytes per line. .PP If \fIcolortable\fR is 0, a color table sufficient for \fInumColors\fR will be allocated (and destructed later). .PP The endianness is specified by \fIbitOrder\fR. .PP \fBWarning:\fR This constructor is only available on Qt/Embedded. -.SH "QImage::QImage ( const QImage & image )" +.SH "TQImage::TQImage ( const TQImage & image )" Constructs a shallow copy of \fIimage\fR. -.SH "QImage::~QImage ()" +.SH "TQImage::~TQImage ()" Destroys the image and cleans up. -.SH "bool QImage::allGray () const" +.SH "bool TQImage::allGray () const" 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. .PP This function is slow for large 16-bit (Qt/Embedded only) and 32-bit images. .PP See also isGrayscale(). -.SH "Endian QImage::bitOrder () const" +.SH "Endian TQImage::bitOrder () const" Returns the bit order for the image. .PP -If it is a 1-bpp image, this function returns either QImage::BigEndian or QImage::LittleEndian. +If it is a 1-bpp image, this function returns either TQImage::BigEndian or TQImage::LittleEndian. .PP -If it is not a 1-bpp image, this function returns QImage::IgnoreEndian. +If it is not a 1-bpp image, this function returns TQImage::IgnoreEndian. .PP See also depth(). -.SH "uchar * QImage::bits () const" +.SH "uchar * TQImage::bits () const" Returns a pointer to the first pixel data. This is equivalent to scanLine(0). .PP See also numBytes(), scanLine(), and jumpTable(). .PP Example: opengl/texture/gltexobj.cpp. -.SH "int QImage::bytesPerLine () const" +.SH "int TQImage::bytesPerLine () const" Returns the number of bytes per image scanline. This is equivalent to numBytes()/height(). .PP See also numBytes() and scanLine(). -.SH "QRgb QImage::color ( int i ) const" +.SH "TQRgb TQImage::color ( int i ) const" Returns the color in the color table at index \fIi\fR. The first color is at index 0. .PP A color value is an RGB triplet. Use the tqRed(), tqGreen() and tqBlue() functions (defined in ntqcolor.h) to get the color value components. .PP -See also setColor(), numColors(), and QColor. +See also setColor(), numColors(), and TQColor. .PP Example: themes/wood.cpp. -.SH "QRgb * QImage::colorTable () const" +.SH "TQRgb * TQImage::colorTable () const" Returns a pointer to the color table. .PP See also numColors(). -.SH "QImage QImage::convertBitOrder ( Endian bitOrder ) const" +.SH "TQImage TQImage::convertBitOrder ( Endian bitOrder ) const" Converts the bit order of the image to \fIbitOrder\fR and returns the converted image. The original image is not changed. .PP Returns \fC*this\fR if the \fIbitOrder\fR is equal to the image bit order, or a null image if this image cannot be converted. .PP See also bitOrder(), systemBitOrder(), and isNull(). -.SH "QImage QImage::convertDepth ( int depth, int conversion_flags ) const" +.SH "TQImage TQImage::convertDepth ( int depth, int conversion_flags ) const" Converts the depth (bpp) of the image to \fIdepth\fR and returns the converted image. The original image is not changed. .PP The \fIdepth\fR argument must be 1, 8, 16 (Qt/Embedded only) or 32. @@ -528,9 +528,9 @@ Returns \fC*this\fR if \fIdepth\fR is equal to the image depth, or a null image If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the \fIconversion_flags\fR to specify how you'd prefer this to happen. .PP See also Qt::ImageConversionFlags, depth(), and isNull(). -.SH "QImage QImage::convertDepth ( int depth ) const" +.SH "TQImage TQImage::convertDepth ( int depth ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -.SH "QImage QImage::convertDepthWithPalette ( int d, QRgb * palette, int palette_count, int conversion_flags = 0 ) const" +.SH "TQImage TQImage::convertDepthWithPalette ( int d, TQRgb * palette, int palette_count, int conversion_flags = 0 ) const" Returns an image with depth \fId\fR, using the \fIpalette_count\fR colors pointed to by \fIpalette\fR. If \fId\fR is 1 or 8, the returned image will have its color table ordered the same as \fIpalette\fR. .PP If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the \fIconversion_flags\fR to specify how you'd prefer this to happen. @@ -540,11 +540,11 @@ Note: currently no closest-color search is made. If colors are found that are no Currently inefficient for non-32-bit images. .PP See also Qt::ImageConversionFlags. -.SH "QImage QImage::copy () const" +.SH "TQImage TQImage::copy () const" Returns a deep copy of the image. .PP See also detach(). -.SH "QImage QImage::copy ( int x, int y, int w, int h, int conversion_flags = 0 ) const" +.SH "TQImage TQImage::copy ( int x, int y, int w, int h, int conversion_flags = 0 ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns a deep copy of a sub-area of the image. @@ -554,25 +554,25 @@ The returned image is always \fIw\fR by \fIh\fR pixels in size, and is copied fr If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the \fIconversion_flags\fR to specify how you'd prefer this to happen. .PP See also bitBlt() and Qt::ImageConversionFlags. -.SH "QImage QImage::copy ( const QRect & r ) const" +.SH "TQImage TQImage::copy ( const QRect & r ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns a deep copy of a sub-area of the image. .PP The returned image always has the size of the rectangle \fIr\fR. In areas beyond this image pixels are filled with pixel 0. -.SH "bool QImage::create ( int width, int height, int depth, int numColors = 0, Endian bitOrder = IgnoreEndian )" +.SH "bool TQImage::create ( int width, int height, int depth, int numColors = 0, Endian bitOrder = IgnoreEndian )" Sets the image \fIwidth\fR, \fIheight\fR, \fIdepth\fR, its number of colors (in \fInumColors\fR), and bit order. Returns TRUE if successful, or FALSE if the parameters are incorrect or if memory cannot be allocated. .PP -The \fIwidth\fR and \fIheight\fR is limited to 32767. \fIdepth\fR must be 1, 8, or 32. If \fIdepth\fR is 1, \fIbitOrder\fR must be set to either QImage::LittleEndian or QImage::BigEndian. For other depths \fIbitOrder\fR must be QImage::IgnoreEndian. +The \fIwidth\fR and \fIheight\fR is limited to 32767. \fIdepth\fR must be 1, 8, or 32. If \fIdepth\fR is 1, \fIbitOrder\fR must be set to either TQImage::LittleEndian or TQImage::BigEndian. For other depths \fIbitOrder\fR must be TQImage::IgnoreEndian. .PP This function allocates a color table and a buffer for the image data. The image data is not initialized. .PP The image buffer is allocated as a single block that consists of a table of scanline pointers (jumpTable()) and the image data (bits()). .PP See also fill(), width(), height(), depth(), numColors(), bitOrder(), jumpTable(), scanLine(), bits(), bytesPerLine(), and numBytes(). -.SH "bool QImage::create ( const QSize &, int depth, int numColors = 0, Endian bitOrder = IgnoreEndian )" +.SH "bool TQImage::create ( const QSize &, int depth, int numColors = 0, Endian bitOrder = IgnoreEndian )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -.SH "QImage QImage::createAlphaMask ( int conversion_flags = 0 ) const" +.SH "TQImage TQImage::createAlphaMask ( int conversion_flags = 0 ) const" Builds and returns a 1-bpp mask from the alpha buffer in this image. Returns a null image if alpha buffer mode is disabled. .PP See QPixmap::convertFromImage() for a description of the \fIconversion_flags\fR argument. @@ -580,7 +580,7 @@ See QPixmap::convertFromImage() for a description of the \fIconversion_flags\fR The returned image has little-endian bit order, which you can convert to big-endianness using convertBitOrder(). .PP See also createHeuristicMask(), hasAlphaBuffer(), and setAlphaBuffer(). -.SH "QImage QImage::createHeuristicMask ( bool clipTight = TRUE ) const" +.SH "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 away pixels of that color starting at all the edges. .PP The four corners vote for which color is to be masked away. In case of a draw (this generally means that this function is not applicable to the image), the result is arbitrary. @@ -592,7 +592,7 @@ If \fIclipTight\fR is TRUE the mask is just large enough to cover the pixels; ot This function disregards the alpha buffer. .PP See also createAlphaMask(). -.SH "int QImage::depth () const" +.SH "int TQImage::depth () const" Returns the depth of the image. .PP The image depth is the number of bits used to encode a single pixel, also called bits per pixel (bpp) or bit planes of an image. @@ -600,7 +600,7 @@ The image depth is the number of bits used to encode a single pixel, also called The supported depths are 1, 8, 16 (Qt/Embedded only) and 32. .PP See also convertDepth(). -.SH "void QImage::detach ()" +.SH "void TQImage::detach ()" Detaches from shared image data and makes sure that this image is the only one referring to the data. .PP If multiple images share common data, this image makes a copy of the data and detaches itself from the sharing mechanism. Nothing is done if there is just a single reference. @@ -608,46 +608,46 @@ If multiple images share common data, this image makes a copy of the data and de See also copy(). .PP Example: themes/wood.cpp. -.SH "int QImage::dotsPerMeterX () const" +.SH "int TQImage::dotsPerMeterX () const" Returns the number of pixels that fit horizontally in a physical meter. This and dotsPerMeterY() define the intended scale and aspect ratio of the image. .PP See also setDotsPerMeterX(). -.SH "int QImage::dotsPerMeterY () const" +.SH "int TQImage::dotsPerMeterY () const" Returns the number of pixels that fit vertically in a physical meter. This and dotsPerMeterX() define the intended scale and aspect ratio of the image. .PP See also setDotsPerMeterY(). -.SH "void QImage::fill ( uint pixel )" +.SH "void TQImage::fill ( uint pixel )" Fills the entire image with the pixel value \fIpixel\fR. .PP If the depth of this image is 1, only the lowest bit is used. If you say fill(0), fill(2), etc., the image is filled with 0s. If you say fill(1), fill(3), etc., the image is filled with 1s. If the depth is 8, the lowest 8 bits are used. .PP If the depth is 32 and the image has no alpha buffer, the \fIpixel\fR value is written to each pixel in the image. If the image has an alpha buffer, only the 24 RGB bits are set and the upper 8 bits (alpha value) are left unchanged. .PP -Note: QImage::pixel() returns the color of the pixel at the given coordinates; QColor::pixel() returns the pixel value of the underlying window system (essentially an index value), so normally you will want to use QImage::pixel() to use a color from an existing image or QColor::rgb() to use a specific color. +Note: TQImage::pixel() returns the color of the pixel at the given coordinates; TQColor::pixel() returns the pixel value of the underlying window system (essentially an index value), so normally you will want to use TQImage::pixel() to use a color from an existing image or TQColor::rgb() to use a specific color. .PP See also invertPixels(), depth(), hasAlphaBuffer(), and create(). -.SH "QImage QImage::fromMimeSource ( const QString & abs_name )\fC [static]\fR" +.SH "TQImage TQImage::fromMimeSource ( const TQString & abs_name )\fC [static]\fR" Convenience function. Gets the data associated with the absolute name \fIabs_name\fR from the default mime source factory and decodes it to an image. .PP -See also QMimeSourceFactory, QImage::fromMimeSource(), and QImageDrag::decode(). -.SH "bool QImage::hasAlphaBuffer () const" +See also QMimeSourceFactory, TQImage::fromMimeSource(), and QImageDrag::decode(). +.SH "bool TQImage::hasAlphaBuffer () const" Returns TRUE if alpha buffer mode is enabled; otherwise returns FALSE. .PP See also setAlphaBuffer(). -.SH "int QImage::height () const" +.SH "int TQImage::height () const" Returns the height of the image. .PP See also width(), size(), and rect(). .PP Examples: .)l canvas/canvas.cpp and opengl/texture/gltexobj.cpp. -.SH "const char * QImage::imageFormat ( const QString & fileName )\fC [static]\fR" +.SH "const char * TQImage::imageFormat ( const TQString & fileName )\fC [static]\fR" Returns a string that specifies the image format of the file \fIfileName\fR, or 0 if the file cannot be read or if the format is not recognized. .PP -The QImageIO documentation lists the guaranteed supported image formats, or use QImage::inputFormats() and QImage::outputFormats() to get lists that include the installed formats. +The QImageIO documentation lists the guaranteed supported image formats, or use TQImage::inputFormats() and TQImage::outputFormats() to get lists that include the installed formats. .PP See also load() and save(). -.SH "QStringList QImage::inputFormatList ()\fC [static]\fR" +.SH "QStringList TQImage::inputFormatList ()\fC [static]\fR" Returns a list of image formats that are supported for image input. .PP Note that if you want to iterate over the list, you should iterate over a copy, e.g. @@ -671,11 +671,11 @@ Note that if you want to iterate over the list, you should iterate over a copy, See also outputFormatList(), inputFormats(), and QImageIO. .PP Example: showimg/showimg.cpp. -.SH "QStrList QImage::inputFormats ()\fC [static]\fR" +.SH "QStrList TQImage::inputFormats ()\fC [static]\fR" Returns a list of image formats that are supported for image input. .PP See also outputFormats(), inputFormatList(), and QImageIO. -.SH "void QImage::invertPixels ( bool invertAlpha = TRUE )" +.SH "void TQImage::invertPixels ( bool invertAlpha = TRUE )" Inverts all pixel values in the image. .PP If the depth is 32: if \fIinvertAlpha\fR is TRUE, the alpha bits are also inverted, otherwise they are left unchanged. @@ -685,25 +685,25 @@ If the depth is not 32, the argument \fIinvertAlpha\fR has no meaning. Note that inverting an 8-bit image means to replace all pixels using color index \fIi\fR with a pixel using color index 255 minus \fIi\fR. Similarly for a 1-bit image. The color table is not changed. .PP See also fill(), depth(), and hasAlphaBuffer(). -.SH "bool QImage::isGrayscale () const" +.SH "bool TQImage::isGrayscale () const" For 16-bit (Qt/Embedded only) and 32-bit images, this function is equivalent to allGray(). .PP -For 8-bpp images, this function returns TRUE if color(i) is QRgb(i,i,i) for all indices of the color table; otherwise returns FALSE. +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. .PP See also allGray() and depth(). -.SH "bool QImage::isNull () const" +.SH "bool TQImage::isNull () const" Returns TRUE if it is a null image; otherwise returns FALSE. .PP A null image has all parameters set to zero and no allocated data. .PP Example: showimg/showimg.cpp. -.SH "uchar ** QImage::jumpTable () const" +.SH "uchar ** TQImage::jumpTable () const" Returns a pointer to the scanline pointer table. .PP This is the beginning of the data block for the image. .PP See also bits() and scanLine(). -.SH "bool QImage::load ( const QString & fileName, const char * format = 0 )" +.SH "bool TQImage::load ( const TQString & fileName, const char * format = 0 )" Loads an image from the file \fIfileName\fR. Returns TRUE if the image was successfully loaded; otherwise returns FALSE. .PP If \fIformat\fR is specified, the loader attempts to read the image using the specified format. If \fIformat\fR is not specified (which is the default), the loader reads a few bytes from the header to guess the file format. @@ -711,7 +711,7 @@ If \fIformat\fR is specified, the loader attempts to read the image using the sp The QImageIO documentation lists the supported image formats and explains how to add extra formats. .PP See also loadFromData(), save(), imageFormat(), QPixmap::load(), and QImageIO. -.SH "bool QImage::loadFromData ( const uchar * buf, uint len, const char * format = 0 )" +.SH "bool TQImage::loadFromData ( const uchar * buf, uint len, const char * format = 0 )" Loads an image from the first \fIlen\fR bytes of binary data in \fIbuf\fR. Returns TRUE if the image was successfully loaded; otherwise returns FALSE. .PP If \fIformat\fR is specified, the loader attempts to read the image using the specified format. If \fIformat\fR is not specified (which is the default), the loader reads a few bytes from the header to guess the file format. @@ -719,23 +719,23 @@ If \fIformat\fR is specified, the loader attempts to read the image using the sp The QImageIO documentation lists the supported image formats and explains how to add extra formats. .PP See also load(), save(), imageFormat(), QPixmap::loadFromData(), and QImageIO. -.SH "bool QImage::loadFromData ( QByteArray buf, const char * format = 0 )" +.SH "bool TQImage::loadFromData ( QByteArray buf, const char * format = 0 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Loads an image from the QByteArray \fIbuf\fR. -.SH "QImage QImage::mirror () const" -Returns a QImage which is a vertically mirrored copy of this image. The original QImage is not changed. -.SH "QImage QImage::mirror ( bool horizontal, bool vertical ) const" +.SH "TQImage TQImage::mirror () const" +Returns a TQImage which is a vertically mirrored copy of this image. The original TQImage is not changed. +.SH "TQImage TQImage::mirror ( bool horizontal, bool vertical ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns a mirror of the image, mirrored in the horizontal and/or the vertical direction depending on whether \fIhorizontal\fR and \fIvertical\fR are set to TRUE or FALSE. The original image is not changed. .PP See also smoothScale(). -.SH "int QImage::numBytes () const" +.SH "int TQImage::numBytes () const" Returns the number of bytes occupied by the image data. .PP See also bytesPerLine() and bits(). -.SH "int QImage::numColors () const" +.SH "int TQImage::numColors () const" Returns the size of the color table for the image. .PP Notice that numColors() returns 0 for 16-bpp (Qt/Embedded only) and 32-bpp images because these images do not use color tables, but instead encode pixel values as RGB triplets. @@ -743,17 +743,17 @@ Notice that numColors() returns 0 for 16-bpp (Qt/Embedded only) and 32-bpp image See also setNumColors() and colorTable(). .PP Example: themes/wood.cpp. -.SH "QPoint QImage::offset () const" +.SH "QPoint TQImage::offset () const" Returns the number of pixels by which the image is intended to be offset by when positioning relative to other images. -.SH "bool QImage::operator!= ( const QImage & i ) const" +.SH "bool TQImage::operator!= ( const TQImage & i ) const" Returns TRUE if this image and image \fIi\fR 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. .PP See also operator=(). -.SH "QImage & QImage::operator= ( const QImage & image )" +.SH "TQImage & TQImage::operator= ( const TQImage & image )" Assigns a shallow copy of \fIimage\fR to this image and returns a reference to this image. .PP See also copy(). -.SH "QImage & QImage::operator= ( const QPixmap & pixmap )" +.SH "TQImage & TQImage::operator= ( const QPixmap & pixmap )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the image bits to the \fIpixmap\fR contents and returns a reference to the image. @@ -761,11 +761,11 @@ Sets the image bits to the \fIpixmap\fR contents and returns a reference to the If the image shares data with other images, it will first dereference the shared data. .PP Makes a call to QPixmap::convertToImage(). -.SH "bool QImage::operator== ( const QImage & i ) const" +.SH "bool TQImage::operator== ( const TQImage & i ) const" Returns TRUE if this image and image \fIi\fR 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. .PP See also operator=(). -.SH "QStringList QImage::outputFormatList ()\fC [static]\fR" +.SH "QStringList TQImage::outputFormatList ()\fC [static]\fR" Returns a list of image formats that are supported for image output. .PP Note that if you want to iterate over the list, you should iterate over a copy, e.g. @@ -787,13 +787,13 @@ Note that if you want to iterate over the list, you should iterate over a copy, .fi .PP See also inputFormatList(), outputFormats(), and QImageIO. -.SH "QStrList QImage::outputFormats ()\fC [static]\fR" +.SH "QStrList TQImage::outputFormats ()\fC [static]\fR" Returns a list of image formats that are supported for image output. .PP See also inputFormats(), outputFormatList(), and QImageIO. .PP Example: showimg/showimg.cpp. -.SH "QRgb QImage::pixel ( int x, int y ) const" +.SH "TQRgb TQImage::pixel ( int x, int y ) const" Returns the color of the pixel at the coordinates (\fIx\fR, \fIy\fR). .PP If (\fIx\fR, \fIy\fR) is not on the image, the results are undefined. @@ -802,32 +802,32 @@ See also setPixel(), tqRed(), tqGreen(), tqBlue(), and valid(). .PP Examples: .)l canvas/canvas.cpp and qmag/qmag.cpp. -.SH "int QImage::pixelIndex ( int x, int y ) const" +.SH "int TQImage::pixelIndex ( int x, int y ) const" Returns the pixel index at the given coordinates. .PP If (\fIx\fR, \fIy\fR) is not valid, or if the image is not a paletted image (depth() > 8), the results are undefined. .PP See also valid() and depth(). -.SH "QRect QImage::rect () const" +.SH "QRect TQImage::rect () const" Returns the enclosing rectangle (0, 0, width(), height()) of the image. .PP See also width(), height(), and size(). -.SH "void QImage::reset ()" +.SH "void TQImage::reset ()" Resets all image parameters and deallocates the image data. -.SH "bool QImage::save ( const QString & fileName, const char * format, int quality = -1 ) const" +.SH "bool TQImage::save ( const TQString & fileName, const char * format, int quality = -1 ) const" Saves the image to the file \fIfileName\fR, using the image file format \fIformat\fR and a quality factor of \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 (the default) to use the default settings. .PP Returns TRUE if the image was successfully saved; otherwise returns FALSE. .PP See also load(), loadFromData(), imageFormat(), QPixmap::save(), and QImageIO. -.SH "bool QImage::save ( QIODevice * device, const char * format, int quality = -1 ) const" +.SH "bool TQImage::save ( TQIODevice * device, const char * format, int quality = -1 ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP -This function writes a QImage to the QIODevice, \fIdevice\fR. This can be used, for example, to save an image directly into a QByteArray: +This function writes a TQImage to the TQIODevice, \fIdevice\fR. This can be used, for example, to save an image directly into a QByteArray: .PP .nf .br - QImage image; + TQImage image; .br QByteArray ba; .br @@ -838,7 +838,7 @@ This function writes a QImage to the QIODevice, \fIdevice\fR. This can be used, image.save( &buffer, "PNG" ); // writes image into ba in PNG format .br .fi -.SH "QImage QImage::scale ( int w, int h, ScaleMode mode = ScaleFree ) const" +.SH "TQImage TQImage::scale ( int w, int h, ScaleMode mode = ScaleFree ) const" Returns a copy of the image scaled to a rectangle of width \fIw\fR and height \fIh\fR according to the ScaleMode \fImode\fR. .TP If \fImode\fR is ScaleFree, the image is scaled to (\fIw\fR, \fIh\fR). @@ -852,11 +852,11 @@ If either the width \fIw\fR or the height \fIh\fR is 0 or negative, this functio This function uses a simple, fast algorithm. If you need better quality, use smoothScale() instead. .PP See also scaleWidth(), scaleHeight(), smoothScale(), and xForm(). -.SH "QImage QImage::scale ( const QSize & s, ScaleMode mode = ScaleFree ) const" +.SH "TQImage TQImage::scale ( const QSize & s, ScaleMode mode = ScaleFree ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP The requested size of the image is \fIs\fR. -.SH "QImage QImage::scaleHeight ( int h ) const" +.SH "TQImage TQImage::scaleHeight ( int h ) const" Returns a scaled copy of the image. The returned image has a height of \fIh\fR pixels. This function automatically calculates the width of the image so that the ratio of the image is preserved. .PP If \fIh\fR is 0 or negative a null image is returned. @@ -864,25 +864,25 @@ If \fIh\fR is 0 or negative a null image is returned. See also scale(), scaleWidth(), smoothScale(), and xForm(). .PP Example: table/small-table-demo/main.cpp. -.SH "QImage QImage::scaleWidth ( int w ) const" +.SH "TQImage TQImage::scaleWidth ( int w ) const" Returns a scaled copy of the image. The returned image has a width of \fIw\fR pixels. This function automatically calculates the height of the image so that the ratio of the image is preserved. .PP If \fIw\fR is 0 or negative a null image is returned. .PP See also scale(), scaleHeight(), smoothScale(), and xForm(). -.SH "uchar * QImage::scanLine ( int i ) const" +.SH "uchar * TQImage::scanLine ( int i ) const" Returns a pointer to the pixel data at the scanline with index \fIi\fR. The first scanline is at index 0. .PP The scanline data is aligned on a 32-bit boundary. .PP -\fBWarning:\fR If you are accessing 32-bpp image data, cast the returned pointer to \fCQRgb*\fR (QRgb has a 32-bit size) and use it to read/write the pixel value. You cannot use the \fCuchar*\fR pointer directly, because the pixel format depends on the byte order on the underlying platform. Hint: use tqRed(), tqGreen() and tqBlue(), etc. (ntqcolor.h) to access the pixels. +\fBWarning:\fR If you are accessing 32-bpp image data, cast the returned pointer to \fCQRgb*\fR (TQRgb has a 32-bit size) and use it to read/write the pixel value. You cannot use the \fCuchar*\fR pointer directly, because the pixel format depends on the byte order on the underlying platform. Hint: use tqRed(), tqGreen() and tqBlue(), etc. (ntqcolor.h) to access the pixels. .PP \fBWarning:\fR If you are accessing 16-bpp image data, you must handle endianness yourself. (Qt/Embedded only) .PP See also bytesPerLine(), bits(), and jumpTable(). .PP Example: desktop/desktop.cpp. -.SH "void QImage::setAlphaBuffer ( bool enable )" +.SH "void TQImage::setAlphaBuffer ( bool enable )" Enables alpha buffer mode if \fIenable\fR is TRUE, otherwise disables it. The default setting is disabled. .PP An 8-bpp image has 8-bit pixels. A pixel is an index into the color table, which contains 32-bit color values. In a 32-bpp image, the 32-bit pixels are the color values. @@ -891,10 +891,10 @@ This 32-bit value is encoded as follows: The lower 24 bits are used for the red, .PP The alpha component specifies the transparency of a pixel. 0 means completely transparent and 255 means opaque. The alpha component is ignored if you do not enable alpha buffer mode. .PP -The alpha buffer is used to set a mask when a QImage is translated to a QPixmap. +The alpha buffer is used to set a mask when a TQImage is translated to a QPixmap. .PP See also hasAlphaBuffer() and createAlphaMask(). -.SH "void QImage::setColor ( int i, QRgb c )" +.SH "void TQImage::setColor ( int i, TQRgb c )" Sets a color in the color table at index \fIi\fR to \fIc\fR. .PP A color value is an RGB triplet. Use the tqRgb() function (defined in ntqcolor.h) to make RGB triplets. @@ -903,19 +903,19 @@ See also color(), setNumColors(), and numColors(). .PP Examples: .)l desktop/desktop.cpp and themes/wood.cpp. -.SH "void QImage::setDotsPerMeterX ( int x )" +.SH "void TQImage::setDotsPerMeterX ( int x )" Sets the value returned by dotsPerMeterX() to \fIx\fR. -.SH "void QImage::setDotsPerMeterY ( int y )" +.SH "void TQImage::setDotsPerMeterY ( int y )" Sets the value returned by dotsPerMeterY() to \fIy\fR. -.SH "void QImage::setNumColors ( int numColors )" +.SH "void TQImage::setNumColors ( int numColors )" Resizes the color table to \fInumColors\fR colors. .PP If the color table is expanded all the extra colors will be set to black (RGB 0,0,0). .PP See also numColors(), color(), setColor(), and colorTable(). -.SH "void QImage::setOffset ( const QPoint & p )" +.SH "void TQImage::setOffset ( const QPoint & p )" Sets the value returned by offset() to \fIp\fR. -.SH "void QImage::setPixel ( int x, int y, uint index_or_rgb )" +.SH "void TQImage::setPixel ( int x, int y, uint index_or_rgb )" Sets the pixel index or color at the coordinates (\fIx\fR, \fIy\fR) to \fIindex_or_rgb\fR. .PP If (\fIx\fR, \fIy\fR) is not valid, the result is undefined. @@ -923,13 +923,13 @@ If (\fIx\fR, \fIy\fR) is not valid, the result is undefined. If the image is a paletted image (depth() <= 8) and \fIindex_or_rgb\fR >= numColors(), the result is undefined. .PP See also pixelIndex(), pixel(), tqRgb(), tqRgba(), and valid(). -.SH "void QImage::setText ( const char * key, const char * lang, const QString & s )" +.SH "void TQImage::setText ( const char * key, const char * lang, const TQString & s )" Records string \fIs\fR for the keyword \fIkey\fR. The \fIkey\fR should be a portable keyword recognizable by other software - some suggested values can be found in the PNG specification. \fIs\fR can be any text. \fIlang\fR should specify the language code (see RFC 1766) or 0. -.SH "QSize QImage::size () const" +.SH "QSize TQImage::size () const" Returns the size of the image, i.e. its width and height. .PP See also width(), height(), and rect(). -.SH "QImage QImage::smoothScale ( int w, int h, ScaleMode mode = ScaleFree ) const" +.SH "TQImage TQImage::smoothScale ( int w, int h, ScaleMode mode = ScaleFree ) const" Returns a smoothly scaled copy of the image. The returned image has a size of width \fIw\fR by height \fIh\fR pixels if \fImode\fR is ScaleFree. The modes ScaleMin and ScaleMax may be used to preserve the ratio of the image: if \fImode\fR is ScaleMin, the returned image is guaranteed to fit into the rectangle specified by \fIw\fR and \fIh\fR (it is as large as possible within the constraints); if \fImode\fR is ScaleMax, the returned image fits at least into the specified rectangle (it is a small as possible within the constraints). .PP For 32-bpp images and 1-bpp/8-bpp color images the result will be 32-bpp, whereas all-gray images (including black-and-white 1-bpp) will produce 8-bit grayscale images with the palette spanning 256 grays from black to white. @@ -943,27 +943,27 @@ Copyright (C) 1989, 1991 by Jef Poskanzer. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. This software is provided "as is" without express or implied warranty. .PP See also scale() and mirror(). -.SH "QImage QImage::smoothScale ( const QSize & s, ScaleMode mode = ScaleFree ) const" +.SH "TQImage TQImage::smoothScale ( const QSize & s, ScaleMode mode = ScaleFree ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP The requested size of the image is \fIs\fR. -.SH "QImage QImage::swapRGB () const" -Returns a QImage in which the values of the red and blue components of all pixels have been swapped, effectively converting an RGB image to a BGR image. The original QImage is not changed. -.SH "Endian QImage::systemBitOrder ()\fC [static]\fR" -Determines the bit order of the display hardware. Returns QImage::LittleEndian (LSB first) or QImage::BigEndian (MSB first). +.SH "TQImage TQImage::swapRGB () const" +Returns a TQImage in which the values of the red and blue components of all pixels have been swapped, effectively converting an RGB image to a BGR image. The original TQImage is not changed. +.SH "Endian TQImage::systemBitOrder ()\fC [static]\fR" +Determines the bit order of the display hardware. Returns TQImage::LittleEndian (LSB first) or TQImage::BigEndian (MSB first). .PP See also systemByteOrder(). -.SH "Endian QImage::systemByteOrder ()\fC [static]\fR" -Determines the host computer byte order. Returns QImage::LittleEndian (LSB first) or QImage::BigEndian (MSB first). +.SH "Endian TQImage::systemByteOrder ()\fC [static]\fR" +Determines the host computer byte order. Returns TQImage::LittleEndian (LSB first) or TQImage::BigEndian (MSB first). .PP See also systemBitOrder(). -.SH "QString QImage::text ( const char * key, const char * lang = 0 ) const" +.SH "TQString TQImage::text ( const char * key, const char * lang = 0 ) const" Returns the string recorded for the keyword \fIkey\fR in language \fIlang\fR, or in a default language if \fIlang\fR is 0. -.SH "QString QImage::text ( const QImageTextKeyLang & kl ) const" +.SH "TQString TQImage::text ( const QImageTextKeyLang & kl ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the string recorded for the keyword and language \fIkl\fR. -.SH "QStringList QImage::textKeys () const" +.SH "QStringList TQImage::textKeys () const" Returns the keywords for which some texts are recorded. .PP Note that if you want to iterate over the list, you should iterate over a copy, e.g. @@ -985,7 +985,7 @@ Note that if you want to iterate over the list, you should iterate over a copy, .fi .PP See also textList(), text(), setText(), and textLanguages(). -.SH "QStringList QImage::textLanguages () const" +.SH "QStringList TQImage::textLanguages () const" Returns the language identifiers for which some texts are recorded. .PP Note that if you want to iterate over the list, you should iterate over a copy, e.g. @@ -1007,7 +1007,7 @@ Note that if you want to iterate over the list, you should iterate over a copy, .fi .PP See also textList(), text(), setText(), and textKeys(). -.SH "QValueList QImage::textList () const" +.SH "QValueList TQImage::textList () const" Returns a list of QImageTextKeyLang objects that enumerate all the texts key/language pairs set by setText() for this image. .PP Note that if you want to iterate over the list, you should iterate over a copy, e.g. @@ -1027,28 +1027,28 @@ Note that if you want to iterate over the list, you should iterate over a copy, } .br .fi -.SH "bool QImage::valid ( int x, int y ) const" +.SH "bool TQImage::valid ( int x, int y ) const" Returns TRUE if ( \fIx\fR, \fIy\fR ) is a valid coordinate in the image; otherwise returns FALSE. .PP See also width(), height(), and pixelIndex(). .PP Examples: .)l canvas/canvas.cpp and qmag/qmag.cpp. -.SH "int QImage::width () const" +.SH "int TQImage::width () const" Returns the width of the image. .PP See also height(), size(), and rect(). .PP Examples: .)l canvas/canvas.cpp and opengl/texture/gltexobj.cpp. -.SH "QImage QImage::xForm ( const QWMatrix & matrix ) const" +.SH "TQImage TQImage::xForm ( const QWMatrix & matrix ) const" Returns a copy of the image that is transformed using the transformation matrix, \fImatrix\fR. .PP The transformation \fImatrix\fR is internally adjusted to compensate for unwanted translation, i.e. xForm() returns the smallest image that contains all the transformed points of the original image. .PP See also scale(), QPixmap::xForm(), QPixmap::trueMatrix(), and QWMatrix. .SH RELATED FUNCTION DOCUMENTATION -.SH "void bitBlt ( QImage * dst, int dx, int dy, const QImage * src, int sx, int sy, int sw, int sh, int conversion_flags )" +.SH "void bitBlt ( TQImage * dst, int dx, int dy, const TQImage * src, int sx, int sy, int sw, int sh, int conversion_flags )" Copies a block of pixels from \fIsrc\fR to \fIdst\fR. The pixels copied from source (src) are converted according to \fIconversion_flags\fR if it is incompatible with the destination (\fIdst\fR). .PP \fIsx\fR, \fIsy\fR is the top-left pixel in \fIsrc\fR, \fIdx\fR, \fIdy\fR is the top-left position in \fIdst\fR and \fIsw\fR, \\sh is the size of the copied block. @@ -1058,16 +1058,16 @@ The copying is clipped if areas outside \fIsrc\fR or \fIdst\fR are specified. If \fIsw\fR is -1, it is adjusted to src->width(). Similarly, if \fIsh\fR is -1, it is adjusted to src->height(). .PP Currently inefficient for non 32-bit images. -.SH "QDataStream & operator<< ( QDataStream & s, const QImage & image )" +.SH "QDataStream & operator<< ( QDataStream & s, const TQImage & image )" Writes the image \fIimage\fR to the stream \fIs\fR as a PNG image, or as a BMP image if the stream's version is 1. .PP Note that writing the stream to a file will not produce a valid image file. .PP -See also QImage::save() and Format of the QDataStream operators. -.SH "QDataStream & operator>> ( QDataStream & s, QImage & image )" +See also TQImage::save() and Format of the QDataStream operators. +.SH "QDataStream & operator>> ( QDataStream & s, TQImage & image )" Reads an image from the stream \fIs\fR and stores it in \fIimage\fR. .PP -See also QImage::load() and Format of the QDataStream operators. +See also TQImage::load() and Format of the QDataStream operators. .SH "SEE ALSO" .BR http://doc.trolltech.com/ntqimage.html -- cgit v1.2.1