Improve QImage::fill(uint) documentation
Remove paragraph about long gone methods, and rephrase it as a note on corresponding getters. At the same time document 64-bit behavior as undefined. Change-Id: I26ffd95040eb0aea30585aa0fa8526417b0ecc7a Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> (cherry picked from commit e3ebbca5406ac02909823a07bfe6ae4db768f3da) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
41fc143635
commit
1c02584282
@ -1674,11 +1674,11 @@ const uchar *QImage::constBits() const
|
|||||||
the depth is 8, the lowest 8 bits are used and if the depth is 16
|
the depth is 8, the lowest 8 bits are used and if the depth is 16
|
||||||
the lowest 16 bits are used.
|
the lowest 16 bits are used.
|
||||||
|
|
||||||
Note: QImage::pixel() returns the color of the pixel at the given
|
If the image depth is higher than 32bit the result is undefined.
|
||||||
coordinates while QColor::pixel() returns the pixel value of the
|
|
||||||
underlying window system (essentially an index value), so normally
|
\note There are no corresponding value getter, though QImage::pixelIndex()
|
||||||
you will want to use QImage::pixel() to use a color from an
|
will return the same value for indexed formats, and QImage::pixel() for
|
||||||
existing image or QColor::rgb() to use a specific color.
|
RGB32, ARGB32, and ARGB32PM formats.
|
||||||
|
|
||||||
\sa depth(), {QImage#Image Transformations}{Image Transformations}
|
\sa depth(), {QImage#Image Transformations}{Image Transformations}
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user