diff options
author | Joni Poikelin <joni.poikelin@qt.io> | 2020-01-30 15:37:03 +0200 |
---|---|---|
committer | Joni Poikelin <joni.poikelin@qt.io> | 2020-01-30 16:10:56 +0200 |
commit | 128db60f4cb35950d3293309ed7ed6229c40c1e7 (patch) | |
tree | d902c54e8a965ef7e47a53e83ea00711d3c4e899 /src/gui | |
parent | 17affdfbcbb1774dd71782d63889689909fb4bff (diff) |
Doc: Update out dated QImage::constScanLine documentation
Change-Id: I0c09a9a6168422c7e41ded289a3e5ba39b84b0ee
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/image/qimage.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/image/qimage.cpp b/src/gui/image/qimage.cpp index d8ed0829af..01abad96a0 100644 --- a/src/gui/image/qimage.cpp +++ b/src/gui/image/qimage.cpp @@ -1621,7 +1621,9 @@ const uchar *QImage::scanLine(int i) const Returns a pointer to the pixel data at the scanline with index \a i. The first scanline is at index 0. - The scanline data is aligned on a 32-bit boundary. + The scanline data is as minimum 32-bit aligned. For 64-bit formats + it follows the native alignment of 64-bit integers (64-bit for most + platforms, but notably 32-bit on i386). Note that QImage uses \l{Implicit Data Sharing} {implicit data sharing}, but this function does \e not perform a deep copy of the |