From bd87b2af9dde0633e56a792665cdec7a9675da95 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 25 Nov 2012 14:05:14 -0600 Subject: Automated update from Qt3 --- doc/html/ntqimage.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'doc/html/ntqimage.html') diff --git a/doc/html/ntqimage.html b/doc/html/ntqimage.html index 2e04c4c0f..678a44dba 100644 --- a/doc/html/ntqimage.html +++ b/doc/html/ntqimage.html @@ -160,7 +160,7 @@ data. 1-bpp and 8-bpp images use a color lookup table; the pixel value is a color table index.

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. -

An entry in the color table is an RGB triplet encoded as a uint. Use the qRed(), qGreen() and qBlue() functions (ntqcolor.h) to access the components, and qRgb to make an RGB triplet (see the TQColor class +

An entry in the color table is an RGB triplet encoded as a uint. 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).

1-bpp (monochrome) images have a color table with a most two colors. There are two different formats: big endian (MSB first) or @@ -194,7 +194,7 @@ significant byte is reserved for the alpha buffer. TQImage image; // sets 32 bit pixel at (x,y) to yellow. uint *p = (uint *)image.scanLine(y) + x; - *p = qRgb(255,255,0); + *p = tqRgb(255,255,0);

On TQt/Embedded, scanlines are aligned to the pixel depth and may @@ -384,7 +384,7 @@ to numBytes()/height().

Returns the color in the color table at index i. The first color is at index 0. -

A color value is an RGB triplet. Use the qRed(), qGreen() and qBlue() functions (defined in ntqcolor.h) to +

A color value is an RGB triplet. Use the tqRed(), tqGreen() and tqBlue() functions (defined in ntqcolor.h) to get the color value components.

See also setColor(), numColors(), and TQColor. @@ -768,7 +768,7 @@ output. Returns the color of the pixel at the coordinates (x, y).

If (x, y) is not on the image, the results are undefined. -

See also setPixel(), qRed(), qGreen(), qBlue(), and valid(). +

See also setPixel(), tqRed(), tqGreen(), tqBlue(), and valid().

Examples: canvas/canvas.cpp and qmag/qmag.cpp.

int TQImage::pixelIndex ( int x, int y ) const @@ -869,8 +869,8 @@ returned. pointer to TQRgb* (TQRgb has a 32-bit size) and use it to read/write the pixel value. You cannot use the uchar* pointer directly, because the pixel format depends on the byte order on -the underlying platform. Hint: use qRed(), -qGreen() and qBlue(), etc. (ntqcolor.h) to access the pixels. +the underlying platform. Hint: use tqRed(), +tqGreen() and tqBlue(), etc. (ntqcolor.h) to access the pixels.

Warning: If you are accessing 16-bpp image data, you must handle endianness yourself. (TQt/Embedded only)

See also bytesPerLine(), bits(), and jumpTable(). @@ -897,7 +897,7 @@ to a TQPixmap.

Sets a color in the color table at index i to c. -

A color value is an RGB triplet. Use the qRgb() function (defined in ntqcolor.h) to make RGB +

A color value is an RGB triplet. Use the tqRgb() function (defined in ntqcolor.h) to make RGB triplets.

See also color(), setNumColors(), and numColors(). @@ -928,7 +928,7 @@ Sets the pixel index or color at the coordinates (x, y) to

If (x, y) is not valid, the result is undefined.

If the image is a paletted image (depth() <= 8) and index_or_rgb >= numColors(), the result is undefined. -

See also pixelIndex(), pixel(), qRgb(), qRgba(), and valid(). +

See also pixelIndex(), pixel(), tqRgb(), tqRgba(), and valid().

void TQImage::setText ( const char * key, const char * lang, const TQString & s )

-- cgit v1.2.1