diff options
Diffstat (limited to 'doc/html/tqpixmap.html')
-rw-r--r-- | doc/html/tqpixmap.html | 46 |
1 files changed, 23 insertions, 23 deletions
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; } <li class=fn>bool <a href="#selfMask"><b>selfMask</b></a> () const</li> <li class=fn>bool <a href="#hasAlpha"><b>hasAlpha</b></a> () const</li> <li class=fn>bool <a href="#hasAlphaChannel"><b>hasAlphaChannel</b></a> () const</li> -<li class=fn>TQBitmap <a href="#createHeuristicMask"><b>createHeuristicMask</b></a> ( bool clipTight = TRUE ) const</li> +<li class=fn>TQBitmap <a href="#createHeuristicMask"><b>createHeuristicMask</b></a> ( bool clipTight = true ) const</li> <li class=fn>TQPixmap <a href="#xForm"><b>xForm</b></a> ( const TQWMatrix & matrix ) const</li> <li class=fn>TQImage <a href="#convertToImage"><b>convertToImage</b></a> () const</li> <li class=fn>bool <a href="#convertFromImage-2"><b>convertFromImage</b></a> ( const TQImage & image, ColorMode mode = Auto )</li> @@ -299,7 +299,7 @@ Constructs a pixmap that is a copy of <em>pixmap</em>. </h3> Constructs a monochrome pixmap, with width <em>w</em> and height <em>h</em>, that is initialized with the data in <em>bits</em>. The <em>isXbitmap</em> -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 <a href="tqbitmap.html">TQBitmap</a> class. <h3 class=fn><a name="~TQPixmap"></a>TQPixmap::~TQPixmap () @@ -308,13 +308,13 @@ Destroys the pixmap. <h3 class=fn>bool <a name="convertFromImage"></a>TQPixmap::convertFromImage ( const <a href="tqimage.html">TQImage</a> & img, int conversion_flags ) </h3> -Converts image <em>img</em> and sets this pixmap. Returns TRUE if -successful; otherwise returns FALSE. +Converts image <em>img</em> and sets this pixmap. Returns true if +successful; otherwise returns false. <p> The <em>conversion_flags</em> argument is a bitwise-OR of the <a href="tqt.html#ImageConversionFlags-enum">TQt::ImageConversionFlags</a>. Passing 0 for <em>conversion_flags</em> sets all the default options. <p> Note that even though a TQPixmap with depth 1 behaves much like a -<a href="tqbitmap.html">TQBitmap</a>, <a href="#isTQBitmap">isTQBitmap</a>() returns FALSE. +<a href="tqbitmap.html">TQBitmap</a>, <a href="#isTQBitmap">isTQBitmap</a>() returns false. <p> 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. </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Converts <em>image</em> and sets this pixmap using color mode <em>mode</em>. -Returns TRUE if successful; otherwise returns FALSE. +Returns true if successful; otherwise returns false. <p> <p>See also <a href="#ColorMode-enum">TQPixmap::ColorMode</a>. <h3 class=fn><a href="tqimage.html">TQImage</a> <a name="convertToImage"></a>TQPixmap::convertToImage () const @@ -341,7 +341,7 @@ ignored. <p> <p>See also <a href="#convertFromImage">convertFromImage</a>(). <p>Example: <a href="qmag-example.html#x1783">qmag/qmag.cpp</a>. -<h3 class=fn><a href="tqbitmap.html">TQBitmap</a> <a name="createHeuristicMask"></a>TQPixmap::createHeuristicMask ( bool clipTight = TRUE ) const +<h3 class=fn><a href="tqbitmap.html">TQBitmap</a> <a name="createHeuristicMask"></a>TQPixmap::createHeuristicMask ( bool clipTight = true ) const </h3> 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: <p> This function is slow because it involves transformation to a <a href="tqimage.html">TQImage</a>, non-trivial computations and a transformation back to a <a href="tqbitmap.html">TQBitmap</a>. -<p> If <em>clipTight</em> is TRUE the mask is just large enough to cover the +<p> If <em>clipTight</em> is true the mask is just large enough to cover the pixels; otherwise, the mask is larger than the data pixels. <p> <p>See also <a href="tqimage.html#createHeuristicMask">TQImage::createHeuristicMask</a>(). @@ -502,15 +502,15 @@ uninitialized. <p>Example: <a href="qmag-example.html#x1784">qmag/qmag.cpp</a>. <h3 class=fn>bool <a name="hasAlpha"></a>TQPixmap::hasAlpha () const </h3> -Returns TRUE this pixmap has an alpha channel or a mask. +Returns true this pixmap has an alpha channel or a mask. <p> <p>See also <a href="#hasAlphaChannel">hasAlphaChannel</a>() and <a href="#mask">mask</a>(). <h3 class=fn>bool <a name="hasAlphaChannel"></a>TQPixmap::hasAlphaChannel () const </h3> -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. <p> NOTE: If the pixmap has a mask but not alpha channel, this -function returns FALSE. +function returns false. <p> <p>See also <a href="#hasAlpha">hasAlpha</a>() and <a href="#mask">mask</a>(). <h3 class=fn>int <a name="height"></a>TQPixmap::height () const @@ -530,7 +530,7 @@ be recognized. <h3 class=fn>bool <a name="isNull"></a>TQPixmap::isNull () const </h3> -<p> Returns TRUE if this is a null pixmap; otherwise returns FALSE. +<p> Returns true if this is a null pixmap; otherwise returns false. <p> A null pixmap has zero width, zero height and no contents. You cannot draw in a null pixmap or <a href="tqpaintdevice.html#bitBlt">bitBlt</a>() anything to it. <p> Resizing an existing pixmap to (0, 0) makes a pixmap into a null @@ -541,12 +541,12 @@ pixmap. <h3 class=fn>bool <a name="isTQBitmap"></a>TQPixmap::isTQBitmap () const </h3> -<p> Returns TRUE if this is a <a href="tqbitmap.html">TQBitmap</a>; otherwise returns FALSE. +<p> Returns true if this is a <a href="tqbitmap.html">TQBitmap</a>; otherwise returns false. <h3 class=fn>bool <a name="load"></a>TQPixmap::load ( const <a href="tqstring.html">TQString</a> & fileName, const char * format, int conversion_flags ) </h3> -Loads a pixmap from the file <em>fileName</em> at runtime. Returns TRUE -if successful; otherwise returns FALSE. +Loads a pixmap from the file <em>fileName</em> at runtime. Returns true +if successful; otherwise returns false. <p> If <em>format</em> is specified, the loader attempts to read the pixmap using the specified format. If <em>format</em> is not specified (default), the loader reads a few bytes from the header to guess @@ -572,7 +572,7 @@ the file's format. <h3 class=fn>bool <a name="loadFromData"></a>TQPixmap::loadFromData ( const uchar * buf, uint len, const char * format, int conversion_flags ) </h3> Loads a pixmap from the binary data in <em>buf</em> (<em>len</em> bytes). -Returns TRUE if successful; otherwise returns FALSE. +Returns true if successful; otherwise returns false. <p> If <em>format</em> is specified, the loader attempts to read the pixmap using the specified format. If <em>format</em> 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. </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Loads a pixmap from the binary data in <em>buf</em> (<em>len</em> bytes) using -color mode <em>mode</em>. Returns TRUE if successful; otherwise returns -FALSE. +color mode <em>mode</em>. Returns true if successful; otherwise returns +false. <p> If <em>format</em> is specified, the loader attempts to read the pixmap using the specified format. If <em>format</em> 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 <em>fileName</em> using the image file format <em>format</em> and a quality factor <em>quality</em>. <em>quality</em> 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. <p> <p>See also <a href="#load">load</a>(), <a href="#loadFromData">loadFromData</a>(), <a href="#imageFormat">imageFormat</a>(), <a href="tqimage.html#save">TQImage::save</a>(), and <a href="tqimageio.html">TQImageIO</a>. <p>Example: <a href="qmag-example.html#x1786">qmag/qmag.cpp</a>. @@ -686,8 +686,8 @@ TQByteArray: <h3 class=fn>bool <a name="selfMask"></a>TQPixmap::selfMask () const </h3> -<p> Returns TRUE if the pixmap's mask is identical to the pixmap -itself; otherwise returns FALSE. +<p> Returns true if the pixmap's mask is identical to the pixmap +itself; otherwise returns false. <p> <p>See also <a href="#mask">mask</a>(). <h3 class=fn>int <a name="serialNumber"></a>TQPixmap::serialNumber () const |